Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Model_0_0 {
- Model_0_1* model_0_1;
- Model_0_0* nextTwin;
- }
- struct Model_0_1 {
- uint unknown1; // Always? 0x00000000
- Model_0_2* model_0_2; // Always? 0x01000000 (LE)
- Model_1_2* model_1_2;
- void* gliData;
- }
- struct Model_0_2 {
- uint unknown1;
- ObjectData_0_1* objectData; // Object address
- }
- struct ObjectData_0_1 {
- ubyte[36] unknown;
- uint flags;
- }
- struct Model_1_2 {
- uint unknown1;
- uint unknown2;
- Model_0_3* model_0_3;
- }
- struct Model_0_3 {
- Vertex* vertices;
- void* unknownPointer2;
- void** unknownPointer3;
- uint unknown;
- void* unknownPointer4;
- Model_0_4* model_0_4;
- ubyte[22] unknown2;
- ushort subModelCount;
- Model_0_5*[] submodels() {
- Model_0_5*[] result;
- foreach(i; 0 .. subModelCount)
- result ~= (model_0_4 + i).model_0_5;
- return result;
- }
- }
- struct Model_0_4 {
- Model_0_5* model_0_5;
- }
- struct Model_0_5 {
- TextureInfo_0* textureInfo_0;
- ushort faceCount;
- ushort unknown;
- VertexFace* indices;
- UVFace* uvIndices; // float u, float v
- Vertex* normals; // NOT SURE
- UV* uvs;
- }
- struct VertexIndex {
- ushort xIndex;
- ushort yIndex;
- ushort zIndex;
- }
- struct Vertex {
- float x, y, z;
- }
- struct VertexFace {
- ushort xIndex, yIndex, zIndex;
- }
- struct UV {
- float u, v;
- }
- struct UVFace {
- ushort xIndex, yIndex, zIndex;
- }
- /*
- Texture info
- */
- struct TextureInfo_0 {
- TextureInfo_1* textureInfo_1;
- }
- struct TextureInfo_1 {
- ubyte[72] unknown;
- TextureInfo_2* textureInfo_2;
- }
- struct TextureInfo_2
- {
- ubyte[8] something1_2;
- uint something3;
- ubyte[8] something4_5;
- uint something6;
- ushort h;
- ushort w;
- ushort h2;
- ushort w2;
- ubyte[12] gap20;
- uint dword2C;
- ubyte[21] gap30;
- ubyte byte45;
- char[130] textureFilename;
- };
Advertisement
Add Comment
Please, Sign In to add comment