Cleaned characterMove event, moved some of its logic into char. move service
This commit is contained in:
@ -14,7 +14,7 @@ export class BaseMapObject extends BaseEntity {
|
||||
tags: string[] = []
|
||||
|
||||
@Property({ type: 'json' })
|
||||
pivotPoints: { x: number; y: number; }[] = []
|
||||
pivotPoints: { x: number; y: number }[] = []
|
||||
|
||||
@Property({ type: 'decimal', precision: 10, scale: 2 })
|
||||
originX = 0
|
||||
@ -64,7 +64,7 @@ export class BaseMapObject extends BaseEntity {
|
||||
return this.tags
|
||||
}
|
||||
|
||||
setPivotPoints(pivotPoints: { x: number; y: number; }[]) {
|
||||
setPivotPoints(pivotPoints: { x: number; y: number }[]) {
|
||||
this.pivotPoints = pivotPoints
|
||||
return this
|
||||
}
|
||||
|
Reference in New Issue
Block a user