Finish sprite gen. update
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user