Depth editing for map objects

This commit is contained in:
2025-03-12 11:14:12 -05:00
parent 47be8597bf
commit 7c78262982
4 changed files with 22 additions and 9 deletions

View File

@ -14,7 +14,7 @@ export class BaseMapObject extends BaseEntity {
tags: string[] = []
@Property({ type: 'json' })
pivotPoints: { x: number; y: number; }[] = []
depthOffsets = [0]
@Property({ type: 'decimal', precision: 10, scale: 2 })
originX = 0
@ -64,13 +64,13 @@ export class BaseMapObject extends BaseEntity {
return this.tags
}
setPivotPoints(pivotPoints: { x: number; y: number; }[]) {
this.pivotPoints = pivotPoints
setDepthOffsets(offsets: any) {
this.depthOffsets = offsets
return this
}
getPivotPoints() {
return this.pivotPoints
getDepthOffsets() {
return this.depthOffsets;
}
setOriginX(originX: number) {