Skip to main content

GymnasiumChunkResizer

A class in Root.Township, the global namespace.

Editor tool for the Gymnasium test scene: rebuilds its grid of chunks as LocationChunks of a set size.

Constructors​

MemberWhat it is
GymnasiumChunkResizer()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

3 private and internal fields
MemberWhat it is
private bool btnInspector button that runs Resize.
private bool btn2Inspector button that runs SetAdjacent.
private int chunkSizeWidth and depth in metres of each rebuilt chunk.

Methods​

MemberWhat it is
void Resize()Replaces each child OverworldChunk with a LocationChunk named x-z, with identifier gym x-z and bounds chunkSize wide and 100 high.
void SetAdjacent()Works out the neighbours of each x-z named chunk on a 5 by 5 grid, but throws the result away, so it changes nothing.