mirror of
https://gitlab.com/Syroot/Worms.git
synced 2025-03-15 23:00:14 +03:00
52 lines
962 B
Plaintext
52 lines
962 B
Plaintext
|
//------------------------------------------------
|
||
|
//--- 010 Editor v9.0.1 Binary Template
|
||
|
//
|
||
|
// File: IGD.bt
|
||
|
// Authors: Syroot
|
||
|
// Version: 0.1.0
|
||
|
// Purpose: Parse Worms World Party Aqua IGD graphics containers.
|
||
|
// Category: Worms World Party Aqua
|
||
|
// File Mask: *.igd
|
||
|
// ID Bytes:
|
||
|
// History:
|
||
|
// 0.1.0 2019-01-05 Initial version.
|
||
|
//------------------------------------------------
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
int x;
|
||
|
int y;
|
||
|
} Vec2 <read=Vec2Read>;
|
||
|
string Vec2Read(Vec2& v)
|
||
|
{
|
||
|
string s;
|
||
|
SPrintf(s, "(%d, %d)", v.x, v.y);
|
||
|
return s;
|
||
|
}
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
uint unkA;
|
||
|
uint index;
|
||
|
uint unkB;
|
||
|
uint unkC;
|
||
|
Vec2 size;
|
||
|
Vec2 center;
|
||
|
uint lenData;
|
||
|
uint lenDataComp;
|
||
|
ubyte dataComp[lenDataComp];
|
||
|
} Image;
|
||
|
|
||
|
LittleEndian();
|
||
|
|
||
|
uint unkA;
|
||
|
uint unkB;
|
||
|
Vec2 negativeSize;
|
||
|
Vec2 center;
|
||
|
Vec2 size;
|
||
|
uint numColors;
|
||
|
uint palette[numColors] <format=hex>;
|
||
|
uint numImages;
|
||
|
if (numImages <= 512)
|
||
|
Image images[numImages] <optimize=false>;
|