public Chunk(GameSave gameSave, BlockTypeTable blockTypeTable, Octree[] octrees) : base(gameSave) { _blockTypeTable = blockTypeTable; _octrees = octrees; UpdateLength(); }
protected override void ReadData(BinaryReader reader) { _blockTypeTable = BlockTypeTable.FromSave(GameSave, ReadAddress(reader)); byte octreeCount = reader.ReadByte(); _octrees = new Octree[octreeCount]; for (int i = 0; i < octreeCount; i++) { _octrees[i] = Octree.FromSave(GameSave, ReadAddress(reader)); } }
protected override void ForgetData() { _blockTypeTable = null; _octrees = null; }