34 lines
990 B
Plaintext
34 lines
990 B
Plaintext
|
|
// ITNE - Entity/Item Chunk (reversed "ENTI")
|
||
|
|
// Contains entity definitions and properties
|
||
|
|
// Found in .ent files
|
||
|
|
|
||
|
|
type itne_chunk [display="ITNE Entity"] byteorder BE
|
||
|
|
{
|
||
|
|
// Standard 16-byte Asura chunk header
|
||
|
|
chunk_id = ascii(read(4));
|
||
|
|
u32 chunk_size;
|
||
|
|
u32 version;
|
||
|
|
u32 flags;
|
||
|
|
|
||
|
|
chunk_id = chunk_id [ui, readonly, display="Chunk ID"];
|
||
|
|
chunk_size = chunk_size [ui, readonly, display="Chunk Size"];
|
||
|
|
version = version [ui, readonly, display="Version"];
|
||
|
|
flags = flags [ui, readonly, display="Flags"];
|
||
|
|
|
||
|
|
// Entity ID
|
||
|
|
u32 entity_id;
|
||
|
|
entity_id = entity_id [ui, readonly, display="Entity ID"];
|
||
|
|
|
||
|
|
// Entity type/class
|
||
|
|
u32 entity_type;
|
||
|
|
entity_type = entity_type [ui, readonly, display="Entity Type"];
|
||
|
|
|
||
|
|
// Property count
|
||
|
|
u32 property_count;
|
||
|
|
property_count = property_count [ui, readonly, display="Property Count"];
|
||
|
|
|
||
|
|
// Entity flags
|
||
|
|
u32 entity_flags;
|
||
|
|
entity_flags = entity_flags [ui, readonly, display="Entity Flags"];
|
||
|
|
}
|