示例#1
0
 public void Initialize(IChunk parent, Vector3Int offset)
 {
     _parent       = parent;
     ChunkOffset   = offset;
     Offset        = _parent.Offset + ChunkOffset;
     RenderState   = LoadingState.Empty;
     VisGraphState = LoadingState.Empty;
     Connectivity  = PoolManager.GetObjectPool <VisibilityData>().Pop();
     Connectivity.Clear();
     MarkHullDirty(true);
     RenderHullMax = new Vector3Int();
     RenderHullMin = new Vector3Int();
     SolidHullMax  = new Vector3Int();
     SolidHullMin  = new Vector3Int();
 }