IChunkRepository

This service maintains the collection of currently loaded Chunks. It is used to register and unregister Chunks as their load state changes and provides lookup access to the currently loaded Chunk set.

Methods

Method bool IsChunkLoaded(Chunk chunk)
Description Returns true if specified Chunk is currently registered as loaded.
Method Chunk[] GetLoadedChunks()
Description Returns all Chunks currently registered as loaded.
Method bool TryRegisterChunk(Chunk chunk)
Description Attempts to register specified Chunk as loaded. Returns true if the Chunk was successfully registered. Returns false if the Chunk is already registered.
Method void UnregisterChunk(Chunk chunk)
Description Removes specified Chunk from the collection of loaded Chunks. Nothing happens if the Chunk is not currently registered.
Method Chunk? GetChunkByID(string id)
Description Returns the currently loaded Chunk whose id matches specified id. Returns null if no loaded Chunk with that id exists.