Mercurial > touhou-doc
diff 06/std.xhtml @ 13:2925b0e246c6 default tip
Fix a lot of things, and add a TODO.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 17 Feb 2012 12:54:08 +0100 |
parents | 2a7b9d62c0c4 |
children |
line wrap: on
line diff
--- a/06/std.xhtml +++ b/06/std.xhtml @@ -32,16 +32,18 @@ typedef struct { <h2>First section</h2> <p>This section is responsible for creating objects from the stgxbg.anm file.</p> <pre> -struct object_header { +typedef struct { uint16_t id; // Always equal to the object's number. Not used by the game. - uint16_t unknown1; //TODO - float unknown2; //TODO - uint32_t unknown3; //TODO - float unknown4; //TODO - float unknown5; //TODO - float unknown6; //TODO - float unknown7; //TODO -}; + uint16_t unknown; //TODO + + // The bounding box. + float x; + float y; + float z; + float width; + float height; + float depth; +} object_header_t; typedef struct { uint16_t unknown; // 0 means a quad, 0xffff means the end. @@ -55,10 +57,10 @@ typedef struct { float height; // If not 0, override the sprite's height (else, use anm info) } thstd_object_t; -struct object { +typedef struct { struct object_header header; struct object_quad quads[]; // Stop when quads.unknown == 0x0004ff -}; +} object_t; </pre> @@ -146,7 +148,7 @@ typedef struct { list_t objects; list_t faces; list_t messages; -} PACK_ATTRIBUTE thstd_t; +} thstd_t; </pre> </body> </html>