예제 #1
0
파일: Chunk.cs 프로젝트: Tamschi/MarsMiner
        public Chunk(GameSave gameSave, BlockTypeTable blockTypeTable, Octree[] octrees) : base(gameSave)
        {
            _blockTypeTable = blockTypeTable;
            _octrees        = octrees;

            UpdateLength();
        }
예제 #2
0
파일: Chunk.cs 프로젝트: Tamschi/MarsMiner
        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));
            }
        }
예제 #3
0
파일: Chunk.cs 프로젝트: Tamschi/MarsMiner
 protected override void ForgetData()
 {
     _blockTypeTable = null;
     _octrees        = null;
 }