Skip to content

Commit

Permalink
Add ResourceList<T> helper class
Browse files Browse the repository at this point in the history
  • Loading branch information
Benualdo committed Sep 16, 2024
1 parent 0f05422 commit 683b1ba
Show file tree
Hide file tree
Showing 27 changed files with 780 additions and 762 deletions.
182 changes: 91 additions & 91 deletions data/Prefabs/Benualdo.prefab

Large diffs are not rendered by default.

84 changes: 43 additions & 41 deletions data/Prefabs/Billboard.prefab
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
<Root>
<Object class="PrefabScene">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="2041328405"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" flags="NotVisible" value="Billboard"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="ObjectPtr" name="m_root">
<Property type="Uint32" name="m_uid" flags="" value="2041328405"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="ObjectPtr" name="m_root" flags="NotVisible">
<Object class="GameObject">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="4284642974"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" value="Root"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value="Opened"/>
<Property type="Uint32" name="m_uid" flags="" value="4284642974"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value="Opened"/>
<Property type="EnumFlagsU32" name="m_flags" flags="Bitfield" value="Enabled"/>
<Property type="Float4" name="m_color" flags="Color" x="1" y="1" z="1" w="1"/>
<Property type="Float4x4" name="m_local" Ix="1" Iy="0" Iz="0" Iw="0" Jx="0" Jy="1" Jz="0" Jw="0" Kx="0" Ky="0" Kz="1" Kw="0" Tx="0" Ty="0" Tz="0" Tw="1"/>
<Property type="Float4x4" name="m_local" flags="Flatten" Ix="1" Iy="0" Iz="0" Iw="0" Jx="0" Jy="1" Jz="0" Jw="0" Kx="0" Ky="0" Kz="1" Kw="0" Tx="0" Ty="0" Tz="0" Tw="1"/>
<Property type="ObjectPtrVector" name="m_components"/>
<Property type="ObjectPtrVector" name="m_children" flags="NotVisible">
<Object class="GameObject">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="2692652078"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" value="Billboard"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="Uint32" name="m_uid" flags="" value="2692652078"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="EnumFlagsU32" name="m_flags" flags="Bitfield" value="Enabled"/>
<Property type="Float4" name="m_color" flags="Color" x="1" y="1" z="1" w="1"/>
<Property type="Float4x4" name="m_local" Ix="-1.0000001" Iy="-1.1920929e-07" Iz="0" Iw="0" Jx="1.1920929e-07" Jy="-1.0000001" Jz="0" Jw="0" Kx="0" Ky="0" Kz="1" Kw="0" Tx="0" Ty="0" Tz="0.5" Tw="1"/>
<Property type="Float4x4" name="m_local" flags="Flatten" Ix="-1.0000001" Iy="-1.1920929e-07" Iz="0" Iw="0" Jx="1.1920929e-07" Jy="-1.0000001" Jz="0" Jw="0" Kx="0" Ky="0" Kz="1" Kw="0" Tx="0" Ty="0" Tz="0.5" Tw="1"/>
<Property type="ObjectPtrVector" name="m_components">
<Object class="PhysicsBodyComponent">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="2012532279"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" flags="NotVisible" value="New PhysicsBodyComponent"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="Uint32" name="m_uid" flags="" value="2012532279"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="EnumFlagsU32" name="m_flags" flags="Bitfield" value="Enabled"/>
<Property type="ObjectPtr" name="m_bodyDesc" flags="Flatten">
<Object class="PhysicsBodyDesc">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="3355493320"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" flags="NotVisible" value="PhysicsBodyDesc #66"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="Uint32" name="m_uid" flags="" value="3355493320"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="Bool" name="m_trigger" value="false"/>
<Property type="Bool" name="m_softBody" flags="SameLine" value="false"/>
<Property type="EnumU16" name="m_layer" flags="ReadOnly" value="Moving"/>
<Property type="EnumU8" name="m_motion" flags="ReadOnly" value="Dynamic"/>
<Property type="Bool" name="m_softBody" value="false"/>
<Property type="EnumU16" name="m_layer" value="Moving"/>
<Property type="EnumU8" name="m_motion" value="Dynamic"/>
<Property type="EnumU8" name="m_motionQuality" value="Discrete"/>
<Property type="Bool" name="m_overrideMass" flags="NotVisible" value="true"/>
<Property type="Float" name="m_mass" flags="Optional" value="500"/>
<Property type="Float" name="m_friction" flags="HasRange" value="0.5"/>
Expand All @@ -48,51 +49,52 @@
</Property>
</Object>
<Object class="PhysicsShapeComponent">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="0"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" flags="NotVisible" value="New PhysicsShapeComponent"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="Uint32" name="m_uid" flags="" value="3136974410"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="EnumFlagsU32" name="m_flags" flags="Bitfield" value="Enabled"/>
<Property type="EnumU8" name="m_shapeType" value="Box"/>
<Property type="ObjectPtr" name="m_shapeDesc" flags="Flatten">
<Object class="BoxShapeDesc">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="0"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" flags="NotVisible" value="BoxShapeDesc #49"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="Uint32" name="m_uid" flags="" value="886857071"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="Float3" name="m_rotation" flags="EulerAngle" x="0" y="0" z="0"/>
<Property type="Float3" name="m_offset" x="0" y="0" z="0"/>
<Property type="Float3" name="m_size" x="4" y="0.25" z="1"/>
<Property type="Float3" name="m_size" flags="HasRange" x="4" y="0.25" z="1"/>
</Object>
</Property>
</Object>
<Object class="MeshComponent">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="3945065832"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" flags="NotVisible" value="New MeshComponent"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="Uint32" name="m_uid" flags="" value="3945065832"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="EnumFlagsU32" name="m_flags" flags="Bitfield" value="Enabled"/>
<Property type="Bool" name="m_displayBones" value="false"/>
<Property type="Resource" name="m_meshResource" flags="Resource">
<Object class="MeshResource">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="2994673781"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" flags="NotVisible" value="New MeshComponent"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="Uint32" name="m_uid" flags="" value="2994673781"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="String" name="m_resourcePath" flags="NotVisible" value="data/Meshes/Soccer/Billboard.fbx"/>
</Object>
</Property>
<Property type="Object" name="m_meshMaterials" flags="Flatten">
<Object class="MaterialResourceList">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="1854991771"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" flags="NotVisible" value="New MeshComponent"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="ResourceVector" name="m_materialResources" flags="Resource">
<Property type="Uint32" name="m_uid" flags="" value="1854991771"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="ResourceVector" name="m_resources" flags="Resource">
<Object class="MaterialResource">
<Property type="Uint32" name="m_uid" flags="Debug|Hexadecimal" value="3357037886"/>
<Property type="Uint32" name="m_originalUID" flags="Debug|Hexadecimal" value="0"/>
<Property type="String" name="m_name" value=""/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="Debug|Bitfield" value=""/>
<Property type="Uint32" name="m_uid" flags="" value="3357037886"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="String" name="m_resourcePath" flags="NotVisible" value="data/Materials/Soccer/Billboard_Empty.mat"/>
</Object>
</Property>
Expand Down
Loading

0 comments on commit 683b1ba

Please sign in to comment.