1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-12 10:40:42 +00:00
OpenDiablo2/d2core/d2records/monster_sequence_record.go
gravestench 271673851a
Added RecordManager implementation to remove d2datadict singletons (#736)
* Added RecordManager implementation to remove d2datadict singletons

* fix object lookup test
2020-09-19 14:33:40 -04:00

32 lines
933 B
Go

package d2records
// MonsterSequences contains the MonsterSequenceRecords
type MonsterSequences map[string]*MonsterSequenceRecord
// MonsterSequenceRecord contains a record for a monster sequence
// Composed of multiple lines from monseq.txt with the same name in the first column.
// Information gathered from [https://d2mods.info/forum/kb/viewarticle?a=395]
type MonsterSequenceRecord struct {
// Name of the sequence, referred to by monstats.txt
Name string
// Frames of this sequence
Frames []*MonsterSequenceFrame
}
// MonsterSequenceFrame represents a single frame of a monster sequence
type MonsterSequenceFrame struct {
// The animation mode for this frame (refers to MonMode.txt)
Mode string
// The frame of the animation mode used for this frame of the sequence
Frame int
// Direction of the frame, enumerated by d2enum.AnimationFrameDirection
Direction int
// Event triggered by this frame
Event int
}