From f898644b165b9ae08ad8a57340cc25f16869d21c Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Wed, 27 Jul 2022 00:43:28 -0500 Subject: [PATCH] Unity 2019 Sprites --- .../files-2019.2/SGCaret000000_0_Sprite.dat | Bin 0 -> 512 bytes .../files-2019.2/SGCaret000000_1_Sprite.dat | Bin 0 -> 520 bytes .../files-2019.2/SGCaret000000_2_Sprite.dat | Bin 0 -> 528 bytes .../files-2019.2/SGCaret000100_0_Sprite.dat | Bin 0 -> 476 bytes .../files-2019.2/SGCaret000100_1_Sprite.dat | Bin 0 -> 476 bytes .../files-2019.2/SGCaret000100_2_Sprite.dat | Bin 0 -> 476 bytes scripts/BinaryTemplates/Unity2019.2Sprite.tcl | 147 ++++++++++++++++++ 7 files changed, 147 insertions(+) create mode 100644 assets/files-2019.2/SGCaret000000_0_Sprite.dat create mode 100644 assets/files-2019.2/SGCaret000000_1_Sprite.dat create mode 100644 assets/files-2019.2/SGCaret000000_2_Sprite.dat create mode 100644 assets/files-2019.2/SGCaret000100_0_Sprite.dat create mode 100644 assets/files-2019.2/SGCaret000100_1_Sprite.dat create mode 100644 assets/files-2019.2/SGCaret000100_2_Sprite.dat create mode 100644 scripts/BinaryTemplates/Unity2019.2Sprite.tcl diff --git a/assets/files-2019.2/SGCaret000000_0_Sprite.dat b/assets/files-2019.2/SGCaret000000_0_Sprite.dat new file mode 100644 index 0000000000000000000000000000000000000000..fdc9533885059997092406d36e7fa954cd468c5e GIT binary patch literal 512 zcmd;QU|-2q}dLiB;f9U-1y02BwC<-h<2U_MZcfdK$c)hzY^ literal 0 HcmV?d00001 diff --git a/assets/files-2019.2/SGCaret000000_1_Sprite.dat b/assets/files-2019.2/SGCaret000000_1_Sprite.dat new file mode 100644 index 0000000000000000000000000000000000000000..d54ecd27560123322d357650bf73a96e4535e65a GIT binary patch literal 520 zcmd;QU|c1;yH>6!xNO8`} z+r>6piP;qVI2>ePaBzgE0nu!+sEU0BddlQUcCEK9F_* zs%x-k0*bSP<-l$LiZ3_-vD*OT7DomKFb!ls0Eq)>1)x|1R87NvNFX=>`3w#q^MEuE JfcXbNEC5G$Fb)6! literal 0 HcmV?d00001 diff --git a/assets/files-2019.2/SGCaret000000_2_Sprite.dat b/assets/files-2019.2/SGCaret000000_2_Sprite.dat new file mode 100644 index 0000000000000000000000000000000000000000..f33cbcb28256b3f36dee1824b93b024921c96299 GIT binary patch literal 528 zcmd;QU|QgENo-f&)$v4B=st4fa4WFlK~G7GM2$#q5T(>k28( zS$VtIW~(r}!lW>?t73>i1YjE2(BxUr_{dxyFo%(W2?!Y(m>EE7`5+3Ik<|gsWE|&lR literal 0 HcmV?d00001 diff --git a/assets/files-2019.2/SGCaret000100_0_Sprite.dat b/assets/files-2019.2/SGCaret000100_0_Sprite.dat new file mode 100644 index 0000000000000000000000000000000000000000..0a34121f33e1b01a58419ee335e34b09f85800f1 GIT binary patch literal 476 zcmd;QU|ti`-s|vF#ObSE0A%+M<0H%QrO`ZjfkIdx(a~K(zfRK@anE|Ah52An>Ssl=9 zCS*P?b^uty;UF+993g5zG@K0*2VxKai$mEE5&R^sux;4Sz|gSY0j#+JNEHC%07N?g j 0 ? $alignment : 0] + return [expr $size - $extra + $newExtra] +} + +proc alignPos {alignment} { + goto [align [pos] $alignment] +} + +proc pptr {name} { + section $name { + int32 "m_FileID" + int64 "m_PathID" + } +} + +proc rectf {name} { + section $name { + float "x" + float "y" + float "width" + float "height" + } +} + +proc vector2f {name} { + section $name { + float "x" + float "y" + } +} + +proc vector3f {name} { + section $name { + float "x" + float "y" + float "z" + } +} + +proc vector4f {name} { + section $name { + float "x" + float "y" + float "z" + float "w" + } +} + +set nameLen [uint32 "Name Length"] +str [align $nameLen 4] "utf8" "Name" +rectf "m_Rect" +vector2f "m_Offset" +vector4f "m_Border" +float "m_PixelsToUnits" +vector2f "m_Pivot" +uint32 "m_Extrude" +uint8 "m_IsPolygon" +alignPos 4 +section "m_RenderDataKey" { + uuid "first" + int64 "second" +} +uint32 "m_AtlasTags.size" +pptr "m_SpriteAtlas" +section "m_RD" { + pptr "texture" + pptr "alphaTexture" + section "secondaryTextures" { + set alen [int32 "size"] + for {set i 0} {$i < $alen} {incr i} { + # TODO: What are these? + } + } + section "m_SubMeshes" { + set alen [int32 "size"] + for {set i 0} {$i < $alen} {incr i} { + section "Submesh" { + uint32 "firstByte" + uint32 "indexCount" + int32 "topology" + uint32 "baseVertex" + uint32 "firstVertex" + uint32 "vertexCount" + section "localAABB" { + vector3f "m_Center" + vector3f "m_Extent" + } + } + } + } + section "m_IndexBuffer" { + set alen [int32 "size"] + for {set i 0} {$i < $alen} {incr i} { + uint8 "data" + } + } + section "m_VertexData" { + uint32 "m_VertexCount" + section "m_Channels" { + set alen [int32 "size"] + for {set i 0} {$i < $alen} {incr i} { + section "ChannelInfo" { + uint8 "stream" + uint8 "offset" + uint8 "format" + uint8 "dimension" + } + } + } + set dlen [uint32 "dataSize"] + bytes $dlen "data" + } + section "m_Bindpose" { + set alen [int32 "size"] + for {set i 0} {$i < $alen} {incr i} { + # TODO: What are these + } + } + rectf "textureRect" + vector2f "textureRectOffset" + vector2f "atlasRectOffset" + uint32 "settingsRaw" + vector4f "uvTransform" + float "downscaleMultiplier" +} + +section "m_PhysicsShape" { + set alen [int32 "size"] + for {set i 0} {$i < $alen} {incr i} { + section "Entry" { + set blen [int32 "size"] + for {set j 0} {$j < $blen} {incr j} { + vector2f "data" + } + } + } +} + +section "m_Bones" { + set alen [int32 "size"] + for {set i 0} {$i < $alen} {incr i} { + # TODO: What are these + } +} \ No newline at end of file