Skip to main content

OptimisedChunkLoader

A class in Root.Township, the global namespace.

An IChunkLoader for a player that picks which chunks to keep loaded around them, using the streaming load and unload bounds. Server-side, one per player.

Constructors​

MemberWhat it is
OptimisedChunkLoader(Player player)Creates an OptimisedChunkLoader from player.

Fields​

2 private and internal fields
MemberWhat it is
private static Logger loggerNLog logger for this class.
private Player playerThe player this loader picks chunks for.

Methods​

1 private and internal method
MemberWhat it is
private void IChunkLoader.GetChunksToLoad(LocationChunk currentChunk, Vector3 position, HashSet<Chunk> dynamicList, HashSet<Chunk> staticList)Fills the lists with chunks inside the load bounds (or just the current cave chunk), forced neighbours, and already-loaded chunks still inside the unload bounds.