fix: animation resourcing

This commit is contained in:
cha0s 2021-02-02 03:28:37 -06:00
parent 7bc14df7b8
commit eb3608cf6f

View File

@ -62,6 +62,7 @@ export default () => class Animation extends decorate(JsonResource) {
}
const keys = [
'directionCount',
'direction',
'frameCount',
'frameSize',
'imageUri',
@ -98,4 +99,15 @@ export default () => class Animation extends decorate(JsonResource) {
return rectangle;
}
toJSON() {
return {
direction: this.direction,
directionCount: this.directionCount,
frameCount: this.frameCount,
frameRate: this.frameRate,
frameSize: this.frameSize,
imageUri: this.imageUri,
};
}
};