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

@ -7,7 +7,7 @@ type Payload = {
id: UUID
name: string
tags: string[]
pivotPoints: { x: number; y: number; }[]
depthOffsets: number[]
originX: number
originY: number
frameRate: number
@ -31,7 +31,7 @@ export default class MapObjectUpdateEvent extends BaseEvent {
if (data.name !== undefined) mapObject.name = data.name
if (data.tags !== undefined) mapObject.tags = data.tags
if (data.pivotPoints !== undefined) mapObject.pivotPoints = data.pivotPoints
if (data.depthOffsets !== undefined) mapObject.depthOffsets = data.depthOffsets
if (data.originX !== undefined) mapObject.originX = data.originX
if (data.originY !== undefined) mapObject.originY = data.originY
if (data.frameRate !== undefined) mapObject.frameRate = data.frameRate