1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-08 08:55:17 +00:00

Colliders: elemType -> elemMaterial (#2189)

* elemType -> elemMaterial

* format
This commit is contained in:
Dragorn421 2024-09-17 00:11:01 +02:00 committed by GitHub
parent 8f0e2fc29c
commit 48780cd2b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
240 changed files with 560 additions and 561 deletions

View file

@ -31,14 +31,14 @@ SHAPE_ENUM = [
"COLSHAPE_TRIS",
"COLSHAPE_QUAD" ]
ELEMTYPE_UNKENUM = [
"ELEMTYPE_UNK0",
"ELEMTYPE_UNK1",
"ELEMTYPE_UNK2",
"ELEMTYPE_UNK3",
"ELEMTYPE_UNK4",
"ELEMTYPE_UNK5",
"ELEMTYPE_UNK6"]
ELEM_MATERIAL_UNKENUM = [
"ELEM_MATERIAL_UNK0",
"ELEM_MATERIAL_UNK1",
"ELEM_MATERIAL_UNK2",
"ELEM_MATERIAL_UNK3",
"ELEM_MATERIAL_UNK4",
"ELEM_MATERIAL_UNK5",
"ELEM_MATERIAL_UNK6"]
ATFLAGS_ENUM = [
"AT_ON",
@ -254,7 +254,7 @@ def GetItems(data, off, count, structf, fmt, size):
cItem = struct.unpack_from(structf, data, off + 0x18 + ioff)
if cBody[0] < 7:
cBody[0] = ELEMTYPE_UNKENUM[cBody[0]]
cBody[0] = ELEM_MATERIAL_UNKENUM[cBody[0]]
else:
cBody[0] = '0x{0:02X}'.format(cBody[0])
@ -302,7 +302,7 @@ def GetCylinder(data, off, type):
cCyl16 = struct.unpack_from(sf_Cylinder16, data, off + 0x20)
if cBody[0] < 7:
cBody[0] = ELEMTYPE_UNKENUM[cBody[0]]
cBody[0] = ELEM_MATERIAL_UNKENUM[cBody[0]]
else:
cBody[0] = '0x{0:02X}'.format(cBody[0])
@ -335,7 +335,7 @@ def GetQuad(data, off, type):
cQuad = struct.unpack_from(sf_Quad, data, off + 0x20)
if cBody[0] < 7:
cBody[0] = ELEMTYPE_UNKENUM[cBody[0]]
cBody[0] = ELEM_MATERIAL_UNKENUM[cBody[0]]
else:
cBody[0] = '0x{0:02X}'.format(cBody[0])