no json
This commit is contained in:
parent
8f8802f387
commit
183b373867
1 changed files with 4 additions and 4 deletions
|
@ -29,12 +29,12 @@ func (a *Anim) Update() error {
|
||||||
|
|
||||||
// AnimDef describes an animation (sequence of frames and timings).
|
// AnimDef describes an animation (sequence of frames and timings).
|
||||||
type AnimDef struct {
|
type AnimDef struct {
|
||||||
Frames []AnimFrame `json:"frames"`
|
Frames []AnimFrame
|
||||||
OneShot bool `json:"oneshot"`
|
OneShot bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// AnimFrame describes a frame in an animation.
|
// AnimFrame describes a frame in an animation.
|
||||||
type AnimFrame struct {
|
type AnimFrame struct {
|
||||||
Frame int `json:"frame"` // show this frame
|
Frame int // show this frame
|
||||||
Duration int `json:"duration"` // for this long, in ticks
|
Duration int // for this long, in ticks
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue