1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-15 16:56:00 -05:00
OpenDiablo2/d2common/d2fileformats/d2animdata/events.go
lord 65cce60eab
adding animdata loader (#718)
* adding animdata loader

* utility methods, more tests, export record struct

- added methods for fps and frame duration calculation to the AnimationDataRecord
- exported AnimationDataRecord
- split the various structs into their own files
- added getter methods for retrieving records by name
- added tests for the new utility methods
2020-09-08 15:59:38 -04:00

14 lines
283 B
Go

package d2animdata
// AnimationEvent represents an event that can happen on a frame of animation
type AnimationEvent byte
// Animation events
const (
AnimationEventNone AnimationEvent = iota
AnimationEventAttack
AnimationEventMissile
AnimationEventSound
AnimationEventSkill
)