Beispiel #1
0
 public override void LoadArt(FileFormats.IniFile.IniSection art)
 {
     base.LoadArt(art);
     UseLineTrail            = art.ReadBool("UseLineTrail");
     LineTrailColor          = art.ReadColor("LineTrailColor");
     LineTrailColorDecrement = art.ReadInt("LineTrailColorDecrement");
     Theater    = art.ReadBool("Theater");
     NewTheater = art.ReadBool("NewTheater");
     Voxel      = art.ReadBool("Voxel");
 }
Beispiel #2
0
        public override void LoadRules(FileFormats.IniFile.IniSection rules)
        {
            base.LoadRules(rules);

            IsVeinhole              = rules.ReadBool("IsVeinhole");
            WaterBound              = rules.ReadBool("WaterBound");
            SpawnsTiberium          = rules.ReadBool("SpawnsTiberium");
            IsFlammable             = rules.ReadBool("IsFlammable");
            RadarColor              = rules.ReadColor("RadarColor");
            IsAnimated              = rules.ReadBool("IsAnimated");
            AnimationRate           = rules.ReadInt("AnimationRate");
            AnimationProbability    = rules.ReadFloat("AnimationProbability");
            TemperateOccupationBits = rules.ReadInt("TemperateOccupationBits", 7);
            SnowOccupationBits      = rules.ReadInt("SnowOccupationBits", 7);
        }
Beispiel #3
0
        public override void LoadRules(FileFormats.IniFile.IniSection rules)
        {
            base.LoadRules(rules);

            Land              = rules.ReadEnum("Land", LandType.Clear);
            Strength          = rules.ReadInt("Strength", 1);
            Wall              = rules.ReadBool("Wall");
            Tiberium          = rules.ReadBool("Tiberium");
            Crate             = rules.ReadBool("Crate");
            CrateTrigger      = rules.ReadBool("CrateTrigger");
            Explodes          = rules.ReadBool("Explodes");
            Overrides         = rules.ReadBool("Overrides");
            CellAnim          = Get <Animation>(rules.ReadString("CellAnim"));
            DamageLevels      = rules.ReadInt("DamageLevels", 1);
            RadarColor        = rules.ReadColor("RadarColor");
            NoUseLandTileType = rules.ReadBool("NoUseLandTileType", true);
            IsVeinholeMonster = rules.ReadBool("IsVeinholeMonster");
            IsVeins           = rules.ReadBool("IsVeins");
            ChainReaction     = rules.ReadBool("ChainReaction");
            DrawFlat          = rules.ReadBool("DrawFlat", true);
            IsARock           = rules.ReadBool("IsARock");
            IsRubble          = rules.ReadBool("IsRubble");
        }
Beispiel #4
0
        public override void LoadRules(FileFormats.IniFile.IniSection rules)
        {
            base.LoadRules(rules);

            Image              = rules.ReadString("Image");
            AlphaImage         = rules.ReadString("AlphaImage");
            CrushSound         = rules.ReadString("CrushSound");
            AmbientSound       = rules.ReadString("AmbientSound");
            Crushable          = rules.ReadBool("Crushable");
            Bombable           = rules.ReadBool("Bombable");
            NoSpawnAlt         = rules.ReadBool("NoSpawnAlt");
            AlternateArcticArt = rules.ReadBool("AlternateArcticArt");
            RadarInvisible     = rules.ReadBool("RadarInvisible");
            Selectable         = rules.ReadBool("Selectable");
            LegalTarget        = rules.ReadBool("LegalTarget");

            Armor              = rules.ReadString("Armor");
            Strength           = rules.ReadInt("Strength");
            Immune             = rules.ReadBool("Immune");
            Insignificant      = rules.ReadBool("Insignificant");
            HasRadialIndicator = rules.ReadBool("HasRadialIndicator");
            RadialColor        = rules.ReadColor("RadialColor");
            IgnoresFirestorm   = rules.ReadBool("IgnoresFirestorm");
        }