-
Notifications
You must be signed in to change notification settings - Fork 4
/
replay.go
47 lines (41 loc) · 862 Bytes
/
replay.go
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
package rocket
// Replay contains the replay data
type Replay struct {
HeaderInfo *ReplayHeader
Version string
Properties map[string]*Property
Levels []string
Keyframes []*Keyframe
DebugData []*DebugData
Tickmarks []*Tickmark
Packages []string
Objects []string
Names []string
}
type Keyframe struct {
Time float32
Frame int32
Position int32
}
type DebugData struct {
Frame int32
User string
Text string
}
type Tickmark struct {
Frame int32
Description string
}
// ReplayHeader contains various details from the header portion of the replay file
type ReplayHeader struct {
HeaderSize int32
CRC uint32
EngineVersion int
LicenseeVersion int
NetVersion int
ClassName string
}
// NewReplay creates a new instance of a replay
func NewReplay() *Replay {
return &Replay{}
}