forked from noxious/client
Teleport modal restored, and expanded undo/redo to include all placed and erase edits across each map element type (map object advanced actions WIP)
This commit is contained in:
@ -151,3 +151,8 @@ export function createTileLayer(tileMap: Phaser.Tilemaps.Tilemap, tilesArray: st
|
||||
|
||||
return layer
|
||||
}
|
||||
|
||||
//Recursive Array Clone
|
||||
export function cloneArray(arr: any[]): any[] {
|
||||
return arr.map((item) => (item instanceof Array ? cloneArray(item) : item))
|
||||
}
|
Reference in New Issue
Block a user