Created
February 27, 2018 12:00
-
-
Save Pupix/4095d747461a36e468ff23b3db30abf9 to your computer and use it in GitHub Desktop.
.lanim file format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-------------------------------------- | |
//--- 010 Editor v4.0.1 Binary Template | |
// | |
// Author: Pupix <[email protected]> | |
// 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>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-------------------------------------- | |
//--- 010 Editor v4.0.1 Binary Template | |
// | |
// Author: Pupix <[email protected]> | |
// 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