Removed isAnimated and isLooping fields

This commit is contained in:
2025-01-27 01:56:04 +01:00
parent 8f4d4fc482
commit 9771f45e6d
8 changed files with 104 additions and 57 deletions

View File

@ -21,9 +21,6 @@ export class BaseMapObject extends BaseEntity {
@Property({ type: 'decimal', precision: 10, scale: 2 })
originY = 0
@Property()
isAnimated = false
@Property()
frameRate = 0
@ -84,15 +81,6 @@ export class BaseMapObject extends BaseEntity {
return this.originY
}
setIsAnimated(isAnimated: boolean) {
this.isAnimated = isAnimated
return this
}
getIsAnimated() {
return this.isAnimated
}
setFrameRate(frameRate: number) {
this.frameRate = frameRate
return this

View File

@ -25,12 +25,6 @@ export class BaseSpriteAction extends BaseEntity {
@Property()
originY = 0
@Property()
isAnimated = false
@Property()
isLooping = false
@Property()
frameWidth = 0
@ -94,24 +88,6 @@ export class BaseSpriteAction extends BaseEntity {
return this.originY
}
setIsAnimated(isAnimated: boolean) {
this.isAnimated = isAnimated
return this
}
getIsAnimated() {
return this.isAnimated
}
setIsLooping(isLooping: boolean) {
this.isLooping = isLooping
return this
}
getIsLooping() {
return this.isLooping
}
setFrameWidth(frameWidth: number) {
this.frameWidth = frameWidth
return this