Depth editing for map objects
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user