Пример #1
0
          IsRuntime;               // setting this to true hides the loadout trait overrides

        public MegaloVariantPlayerTraits(Blam.RuntimeData.Variants.GameEngineMegaloVariant variant) : base(variant)
        {
        }
Пример #2
0
 void TestMegaloVariantFromRetailXbox360(Blam.RuntimeData.Variants.GameEngineMegaloVariant megalo_variant)
 {
     #region CTF
     if (megalo_variant.BaseVariant.Header.Title == "Capture the Flag")
     {
         Assert.AreEqual(0xC3, megalo_variant.EngineDefinition.Conditions.Count);
         Assert.AreEqual(0x198, megalo_variant.EngineDefinition.Actions.Count);
         Assert.AreEqual(0x47, megalo_variant.EngineDefinition.Triggers.Count);
         Assert.AreEqual(4, megalo_variant.EngineDefinition.GameStatistics.Count);
         Assert.AreEqual(2, megalo_variant.EngineDefinition.HudWidgets.Count);
         Assert.AreEqual(6, megalo_variant.EngineDefinition.ObjectFilters.Count);
         Assert.AreEqual(0, megalo_variant.EngineDefinition.CandySpawnerFilters.Count);
     }
     #endregion
     #region Dominion
     else if (megalo_variant.BaseVariant.Header.Title == "Dominion")
     {
         Assert.AreEqual(0x19A, megalo_variant.EngineDefinition.Conditions.Count);
         Assert.AreEqual(0x3D7, megalo_variant.EngineDefinition.Actions.Count);
         Assert.AreEqual(0x7B, megalo_variant.EngineDefinition.Triggers.Count);
         Assert.AreEqual(4, megalo_variant.EngineDefinition.GameStatistics.Count);
         Assert.AreEqual(0, megalo_variant.EngineDefinition.HudWidgets.Count);
         Assert.AreEqual(0xD, megalo_variant.EngineDefinition.ObjectFilters.Count);
         Assert.AreEqual(2, megalo_variant.EngineDefinition.CandySpawnerFilters.Count);
     }
     #endregion
     #region Flood
     else if (megalo_variant.BaseVariant.Header.Title == "Flood")
     {
         Assert.AreEqual(0xB7, megalo_variant.EngineDefinition.Conditions.Count);
         Assert.AreEqual(0x155, megalo_variant.EngineDefinition.Actions.Count);
         Assert.AreEqual(0x23, megalo_variant.EngineDefinition.Triggers.Count);
         Assert.AreEqual(4, megalo_variant.EngineDefinition.GameStatistics.Count);
         Assert.AreEqual(0, megalo_variant.EngineDefinition.HudWidgets.Count);
         Assert.AreEqual(3, megalo_variant.EngineDefinition.ObjectFilters.Count);
         Assert.AreEqual(0, megalo_variant.EngineDefinition.CandySpawnerFilters.Count);
     }
     #endregion
     #region Team Regicide
     else if (megalo_variant.BaseVariant.Header.Title == "Team Regicide")
     {
         Assert.AreEqual(0x99, megalo_variant.EngineDefinition.Conditions.Count);
         Assert.AreEqual(0x130, megalo_variant.EngineDefinition.Actions.Count);
         Assert.AreEqual(0x18, megalo_variant.EngineDefinition.Triggers.Count);
         Assert.AreEqual(4, megalo_variant.EngineDefinition.GameStatistics.Count);
         Assert.AreEqual(0, megalo_variant.EngineDefinition.HudWidgets.Count);
         Assert.AreEqual(3, megalo_variant.EngineDefinition.ObjectFilters.Count);
         Assert.AreEqual(0, megalo_variant.EngineDefinition.CandySpawnerFilters.Count);
     }
     #endregion
     #region Oddball
     else if (megalo_variant.BaseVariant.Header.Title == "Oddball")
     {
         Assert.AreEqual(0xA3, megalo_variant.EngineDefinition.Conditions.Count);
         Assert.AreEqual(0x183, megalo_variant.EngineDefinition.Actions.Count);
         Assert.AreEqual(0x27, megalo_variant.EngineDefinition.Triggers.Count);
         Assert.AreEqual(4, megalo_variant.EngineDefinition.GameStatistics.Count);
         Assert.AreEqual(0, megalo_variant.EngineDefinition.HudWidgets.Count);
         Assert.AreEqual(6, megalo_variant.EngineDefinition.ObjectFilters.Count);
         Assert.AreEqual(1, megalo_variant.EngineDefinition.CandySpawnerFilters.Count);
     }
     #endregion
 }