Skip to content

Instantly share code, notes, and snippets.

@Pupix
Created February 27, 2018 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pupix/4095d747461a36e468ff23b3db30abf9 to your computer and use it in GitHub Desktop.
Save Pupix/4095d747461a36e468ff23b3db30abf9 to your computer and use it in GitHub Desktop.
.lanim file format
//--------------------------------------
//--- 010 Editor v4.0.1 Binary Template
//
// Author: Pupix <manolea.robert@gmail.com>
// Purpose: Parsing lolking's lanim files
//--------------------------------------
// STRUCTS
struct Position {
float x;
float y;
float z;
};
struct Rotation {
float x;
float y;
float z;
float w;
};
struct Size {
float x;
float y;
float z;
};
struct Frame {
Position position;
Rotation rotation;
Size size;
};
struct Bone {
uint32 frameCount;
uint16 nameLength;
char name[nameLength];
uint32 flag;
Frame frames[frameCount];
};
struct Animation {
uint16 nameLength;
char name[nameLength];
uint32 fps;
uint32 boneCount;
Bone bones[boneCount] <optimize=false>;
};
// READING DATA
uint32 animationCount;
Animation animations[animationCount] <optimize=false>;
//--------------------------------------
//--- 010 Editor v4.0.1 Binary Template
//
// Author: Pupix <manolea.robert@gmail.com>
// Purpose: Parsing lolking's lanim files
//--------------------------------------
uint32 magic;
uint32 version;
// zlib compressed data, unzip and use `lanim compressedData template.bt` to parse
byte compressedData[FileSize() - 8];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment