public void SetFootprintOccupied(BuildingLocation location, BuildingFootprint footprint, bool value)
 {
     for (int i = 0; i < footprint.footprint.Length; i++)
     {
         SetCellOccupied(location.GetX() + footprint.footprint[i].x, location.GetZ() + footprint.footprint[i].z, value);
     }
 }
Exemple #2
0
        public virtual void Initialize(BuildingManager buildMan, BuildingLocation location)
        {
            this.buildMan = buildMan;
            this.location = location;
            details       = BuildingManager.GetBuildingDetails(type);

            isBuilt = false;
        }