Пример #1
0
        public DetailManager(TerrainTile tt)
        {
            Tile = tt;

            if (ObjectPlacer == null)
            {
                ObjectPlacer = new ObjectRenderer();
            }
        }
Пример #2
0
        public ObjectPool(ObjectRenderer placer)
        {
            Placer = placer;

            ObjectPlacementType[] types = placer.ObjectsToPlace.ToArray();
            Containers = new ObjectContainer[types.Length];
            Tiles      = new List <TileContainer>();

            for (int i = 0; i < types.Length; i++)
            {
                Containers[i] = new ObjectContainer(types[i]);
            }
        }
        public ObjectPool(ObjectRenderer placer)
        {
            Placer = placer;

            ObjectPlacementData[] objectPlacementData = placer.ObjectsToPlace.ToArray();
            Containers = new ObjectContainer[objectPlacementData.Length];
            Tiles      = new List <TileContainer>();

            for (int i = 0; i < objectPlacementData.Length; i++)
            {
                Containers[i] = new ObjectContainer(objectPlacementData[i]);
            }
        }