mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-19 02:46:35 -05:00
65cce60eab
* 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
14 lines
283 B
Go
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
|
|
)
|