Cleaned characterMove event, moved some of its logic into char. move service

This commit is contained in:
2025-02-15 22:27:57 +01:00
parent 086c7cd6d6
commit 5acebfe377
5 changed files with 46 additions and 46 deletions

View File

@ -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
}