mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
103 lines
1.8 KiB
Plaintext
103 lines
1.8 KiB
Plaintext
struct image {
|
|
int id = 0
|
|
string filename = filename@1
|
|
}
|
|
|
|
struct spriteset {
|
|
ptr:image img = @1
|
|
int gridx = @2
|
|
int gridy = @3
|
|
}
|
|
|
|
struct sprite {
|
|
ptr:spriteset set = parent
|
|
int x = @1
|
|
int y = @2
|
|
int w = @3
|
|
int h = @4
|
|
}
|
|
|
|
struct sound {
|
|
int id = 0
|
|
string filename = @0
|
|
}
|
|
|
|
struct soundset {
|
|
int last = 0
|
|
array:sound sounds = *
|
|
}
|
|
|
|
struct particleinfo {
|
|
ptr:sprite spr = sprite@1
|
|
float color_r = color@1
|
|
float color_g = color@2
|
|
float color_b = color@3
|
|
float color_a = color@4
|
|
int lifemod = life@1
|
|
}
|
|
|
|
struct weapon {
|
|
ptr:sprite sprite_body = sprite_body@1
|
|
ptr:sprite sprite_cursor = sprite_cursor@1
|
|
ptr:sprite sprite_proj = sprite_proj@1
|
|
int recoil = recoil@1
|
|
int visual_size = visual_size@1
|
|
}
|
|
|
|
struct keyframe {
|
|
float time = @0
|
|
float x = @1
|
|
float y = @2
|
|
float angle = @3
|
|
}
|
|
|
|
struct sequence {
|
|
array:keyframe frames = *
|
|
}
|
|
|
|
struct animation {
|
|
instance:sequence body = body
|
|
instance:sequence back_foot = back_foot
|
|
instance:sequence front_foot = front_foot
|
|
instance:sequence attach = attach
|
|
}
|
|
|
|
struct gui_box {
|
|
int x = @1
|
|
int y = @2
|
|
int w = @3
|
|
int h = @4
|
|
}
|
|
|
|
struct gui_compositebox {
|
|
instance:gui_box rect = rect
|
|
instance:gui_box center = center
|
|
}
|
|
|
|
struct gui_widgets {
|
|
array:gui_compositebox boxes = boxes.*
|
|
array:gui_box misc = misc.*
|
|
}
|
|
|
|
const array:int gui_box = gui.boxes.*
|
|
const array:int gui_misc = gui.misc.*
|
|
|
|
struct data_container {
|
|
array:image images = images.*
|
|
array:spriteset spritesets = sprites.*
|
|
array:sprite sprites = sprites.*.*
|
|
array:weapon weapons = weapons.*
|
|
array:particleinfo particles = particles.*
|
|
|
|
array:soundset sounds = sounds.*
|
|
array:animation animations = animations.*
|
|
|
|
instance:gui_widgets gui = gui
|
|
}
|
|
|
|
const array:int weapon = weapons.*
|
|
const array:int sound = sounds.*
|
|
const array:int image = images.*
|
|
const array:int sprite = sprites.*.*
|
|
const array:int anim = animations.*
|