mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-06 11:34:15 -04:00
* 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
|
|
)
|