mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-10-01 15:46:17 -04:00
animation data: lintfix
This commit is contained in:
parent
c603eaafbc
commit
2e2d086d71
@ -61,6 +61,7 @@ func (ad *AnimationData) GetRecordsCount() int {
|
|||||||
return len(ad.entries)
|
return len(ad.entries)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PushRecord adds a new record to entry named 'name'
|
||||||
func (ad *AnimationData) PushRecord(name string) {
|
func (ad *AnimationData) PushRecord(name string) {
|
||||||
ad.entries[name] = append(
|
ad.entries[name] = append(
|
||||||
ad.entries[name],
|
ad.entries[name],
|
||||||
@ -70,8 +71,10 @@ func (ad *AnimationData) PushRecord(name string) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeleteRecord teletes specified index from specified entry
|
||||||
func (ad *AnimationData) DeleteRecord(name string, recordIdx int) error {
|
func (ad *AnimationData) DeleteRecord(name string, recordIdx int) error {
|
||||||
newRecords := make([]*AnimationDataRecord, 0)
|
newRecords := make([]*AnimationDataRecord, 0)
|
||||||
|
|
||||||
for n, i := range ad.entries[name] {
|
for n, i := range ad.entries[name] {
|
||||||
if n == recordIdx {
|
if n == recordIdx {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user