-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlight_def_0x1b.ksy
75 lines (70 loc) · 1.27 KB
/
light_def_0x1b.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
meta:
id: light_def_0x1b
endian: le
bit-endian: le
doc: |
#### Example
```
LIGHTDEFINITION
TAG "FX_BLUE"
NUMFRAMES 1
LIGHTLEVELS 0.800000
SLEEP 30000
COLOR 0.000000 0.000000 1.000000
ENDLIGHTDEFINITION
```
seq:
- id: name_reference
type: s4
- id: flags
type: light_flags
# NUMFRAMES
- id: frame_count
type: u4
# CURRENTFRAME %d
- id: current_frame
type: u4
if: flags.has_current_frame
# SLEEP %d
- id: sleep
type: u4
if: flags.has_sleep
# LIGHTLEVELS %f
- id: light_levels
type: f4
repeat: expr
repeat-expr: frame_count
if: flags.has_light_levels
# COLOR %f %f %f
- id: colors
type: color_rgb
repeat: expr
repeat-expr: frame_count
if: flags.has_color and frame_count != 0
types:
color_rgb:
seq:
- id: red
type: f4
- id: green
type: f4
- id: blue
type: f4
light_flags:
seq:
- id: has_current_frame
type: b1
- id: has_sleep
type: b1
- id: has_light_levels
type: b1
# SKIPFRAMES ON
- id: skip_frames
type: b1
- id: has_color
type: b1
- id: padding
type: b27
# instances:
# name:
# type: string_hash_reference(name_reference)