Finish sprite gen. update

This commit is contained in:
2025-02-21 02:01:51 +01:00
parent c59b391a6a
commit 5b06386a39
6 changed files with 87 additions and 64 deletions

View File

@ -14,11 +14,11 @@ export class BaseSprite extends BaseEntity {
@OneToMany({ mappedBy: 'sprite', orphanRemoval: true })
spriteActions = new Collection<SpriteAction>(this)
@Property()
width: number = 0
@Property({ nullable: true })
width: number | null = null
@Property()
height: number = 0
@Property({ nullable: true })
height: number | null = null
@Property()
createdAt = new Date()
@ -53,7 +53,7 @@ export class BaseSprite extends BaseEntity {
return this.spriteActions
}
setWidth(width: number) {
setWidth(width: number | null) {
this.width = width
return this
}
@ -62,7 +62,7 @@ export class BaseSprite extends BaseEntity {
return this.width
}
setHeight(height: number) {
setHeight(height: number | null) {
this.height = height
return this
}