Constructors
constructor
-
Parameters
-
-
externalPlaceAccessibilityProvider: (x: number, y: number) => boolean = ...
-
- (x: number, y: number): boolean
-
Parameters
Returns boolean
Properties
Private Readonly mapHolder
Methods
getCanvas
- getCanvas(colorProvider: (x: number, y: number, instanceType?: string) => string, blockSize?: { x: number; y: number }): HTMLCanvasElement
-
Parameters
-
colorProvider: (x: number, y: number, instanceType?: string) => string
-
- (x: number, y: number, instanceType?: string): string
-
Parameters
-
x: number
-
y: number
-
Optional instanceType: string
Returns string
-
blockSize: { x: number; y: number } = ...
Returns HTMLCanvasElement
getItem
-
Type parameters
Parameters
Returns undefined | T
isFree
- isFree(x: number, y: number, size?: Readonly<SimpleVector2>): boolean
-
Parameters
Returns boolean
printData
- printData(provider: (x: number, y: number, instanceType: WorldPlaceItem) => string, delimiter?: string): void
-
Parameters
-
provider: (x: number, y: number, instanceType: WorldPlaceItem) => string
-
- (x: number, y: number, instanceType: WorldPlaceItem): string
-
Parameters
-
x: number
-
y: number
-
instanceType: WorldPlaceItem
Returns string
-
delimiter: string = ","
Returns void
removeItemFrom
-
Parameters
Returns boolean
Private setChildren
-
Parameters
-
-
-
Optional parent: WorldPlaceItem
Returns void