public static void Initialize(int tileSize, int partitionSize)
        {
            largeObjectTile = new PartitionTile(Rectangle.Empty);
            TileSize        = tileSize;
            PartitionSize   = partitionSize;

            // Initialize pool.
            for (int i = 0; i < InitialPoolSize; i++)
            {
                Rectangle        bounds    = new Rectangle(0, 0, PartitionSize, PartitionSize);
                SpatialPartition partition = new SpatialPartition(TileSize, bounds);
                ReturnToPool(partition);
            }
        }
Beispiel #2
0
 public void RemovedFromPartition(PartitionTile tile)
 {
 }
Beispiel #3
0
 public void InsertedIntoPartition(PartitionTile tile)
 {
 }