Ejemplo n.º 1
0
        //TODO: chunkLoaders:

        private void Awake()
        {
            _chunkIdToChunkInfoDict = new Dictionary <Vector2Int, SC_ChunkRuntimeInfo>();

            var chunksMetaInfo = _settings.GetChunkMetaInfos();

            foreach (var tmpMetaInfo in chunksMetaInfo)
            {
                var chunkInfo = new SC_ChunkRuntimeInfo(tmpMetaInfo, this);
                _chunkInfos.Add(chunkInfo);
                _chunkIdToChunkInfoDict.Add(tmpMetaInfo.ChunkId, chunkInfo);
            }
        }
Ejemplo n.º 2
0
 public void RequestUnloadChunk(SC_ChunkRuntimeInfo chunk)
 {
     Debug.Assert(chunk != null, "Chunk was null!");
     //TODO:
 }