Exemple #1
0
 public AddChunkFinder(IntVector3 halfSize, Transform center, LiveChunks lookup, VGenConfig vGenConfig)
 {
     this.lookup = lookup;
     this.center = center;
     _halfSize   = halfSize;
     resetIterator();
     iterator      = new ProximityIterator3(domain.size.MaxComponent);
     chunkAddQueue = new ChunkAddQueue(domain.size.MaxComponent);
 }
Exemple #2
0
 public TargetCenteredChunkBounds(Transform target, IntVector3 size, IntVector3 boundsSize, VGenConfig vg, Action moveMethod = null)
 {
     this.target = target;
     this.size   = size;
     vGenConfig  = vg;
     iterator    = new ProximityIterator3(size, boundsSize);
     if (moveMethod == null)
     {
         this.moveMethod = () =>
         {
             target.position += new IntVector3(size.x * boundsSize.x, 0, 0).ToVector3();
         };
     }
     else
     {
         this.moveMethod = moveMethod;
     }
 }