Represents a zone position.
Exemple #1
0
        /// <summary>
        /// Resets properties to their default values.
        /// </summary>
        public override void Reset()
        {
            base.Reset();

            Positions = new ZonePosition[0, 0];

            Type          = ZoneType.Grass;
            Width         = 0;
            Height        = 0;
            GridCount     = 0;
            GridSize      = 0.0f;
            StartPosition = new IntVector2();

            Name                    = string.Empty;
            IsUnderground           = false;
            BackgroundMusicFilePath = string.Empty;
            SkyFilePath             = string.Empty;
            EconomyCheckRate        = 50;
            PopulationBase          = 100;
            PopulationGrowthRate    = 10;
            MetalConsumption        = 50;
            StoneConsumption        = 50;
            WoodConsumption         = 50;
            LeatherConsumption      = 50;
            ClothConsumption        = 50;
            AlchemyConsumption      = 50;
            ChemicalConsumption     = 50;
            IndustrialConsumption   = 50;
            MedicineConsumption     = 50;
            FoodConsumption         = 50;

            Clear();
        }
Exemple #2
0
        /// <summary>
        /// Resets properties to their default values.
        /// </summary>
        public override void Reset()
        {
            base.Reset();

            Positions = new ZonePosition[0,0];

            Type = ZoneType.Grass;
            Width = 0;
            Height = 0;
            GridCount = 0;
            GridSize = 0.0f;
            StartPosition = new IntVector2();

            Name = string.Empty;
            IsUnderground = false;
            BackgroundMusicFilePath = string.Empty;
            SkyFilePath = string.Empty;
            EconomyCheckRate = 50;
            PopulationBase = 100;
            PopulationGrowthRate = 10;
            MetalConsumption = 50;
            StoneConsumption = 50;
            WoodConsumption = 50;
            LeatherConsumption = 50;
            ClothConsumption = 50;
            AlchemyConsumption = 50;
            ChemicalConsumption = 50;
            IndustrialConsumption = 50;
            MedicineConsumption = 50;
            FoodConsumption = 50;

            Clear();
        }