Class: WorldRegister
Data/World/WorldRegister.WorldRegister
Constructors
constructor
• new WorldRegister(): WorldRegister
Returns
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:23
Properties
_cacheOn
• _cacheOn: boolean = false
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:18
_chunkCache
• _chunkCache: Map<string, Chunk>
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:19
_columnCache
• _columnCache: Map<string, Column>
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:20
_dimensionRegister
• _dimensionRegister: DimensionsRegister
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:22
_dimensions
• _dimensions: Map<string, Dimension>
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:17
cache
• cache: Object
Type declaration
| Name | Type |
|---|---|
_addChunk | (key: string, data: Chunk) => void |
_addColumn | (key: string, data: Column) => void |
_getChunk | (key: string) => undefined | Chunk |
_getColumn | (key: string) => undefined | Column |
disable | () => void |
enable | () => void |
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:27
chunk
• chunk: Object
Type declaration
| Name | Type |
|---|---|
add | (location: LocationData, chunk: Chunk) => undefined | Chunk |
get | (location: LocationData) => undefined | false | Chunk |
remove | (location: LocationData) => boolean |
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:168
chunkTool
• chunkTool: ChunkDataTool
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:14
column
• column: Object
Type declaration
| Name | Type |
|---|---|
add | (location: LocationData, column: Column) => undefined | Column |
fill | (location: LocationData) => void |
get | (location: LocationData) => false | Column |
remove | (location: LocationData) => boolean |
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:101
columnTool
• columnTool: ColumnDataTool
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:15
dimensions
• dimensions: Object
Type declaration
| Name | Type |
|---|---|
add | (id: string | number) => Dimension |
get | (id: string | number) => undefined | Dimension |
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:51
region
• region: Object
Type declaration
| Name | Type |
|---|---|
add | (location: LocationData, region: Region) => Region |
get | (location: LocationData) => false | Region |
remove | (location: LocationData) => boolean |
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:70
regionTool
• regionTool: RegionDataTool
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:16
instance
▪ Static instance: WorldRegister
Defined in
divinevoxel/foundation/src/Data/World/WorldRegister.ts:13
Methods
clearAll
▸ clearAll(): void
Returns
void