Exemplo n.º 1
0
 private static void EnsureChar(ref TestCharacter chr, CharacterPool pool)
 {
     chr = pool.Create();
     chr.SetMoney(100000);
     chr.GodMode = true;
     chr.EnsureInWorldAndLiving();
 }
Exemplo n.º 2
0
		void EnsureChar(ref TestCharacter chr, CharacterPool pool)
		{
			//if (chr == null || chr.IsInWorld)
			{
				chr = pool.Create();
				chr.SetMoney(100000);
				chr.GodMode = true;
				chr.EnsureInWorldAndLiving();
			}
		}
Exemplo n.º 3
0
        public void TestClassInitialize()
        {
            CharacterPool.RemoveAllChars();

            foreach (var chr in World.GetAllCharacters())
            {
                World.RemoveCharacter(chr);
            }

            _allianceChar1       = Setup.AllianceCharacterPool.Create();
            _allianceChar1.Class = WCell.Constants.ClassId.Priest;
            _allianceChar1.Race  = WCell.Constants.RaceId.Draenei;
            _allianceChar1.SetName("AllianceChar1");
            _allianceChar1.Level = 1;
            _allianceChar1.EnsureInWorld();

            _allianceChar2       = Setup.AllianceCharacterPool.Create();
            _allianceChar2.Class = WCell.Constants.ClassId.Druid;
            _allianceChar2.Race  = WCell.Constants.RaceId.NightElf;
            _allianceChar2.SetName("AllianceChar2");
            _allianceChar2.Level = 2;
            _allianceChar2.EnsureInWorld();

            _allianceChar3       = Setup.AllianceCharacterPool.Create();
            _allianceChar3.Class = WCell.Constants.ClassId.Paladin;
            _allianceChar3.Race  = WCell.Constants.RaceId.Human;
            _allianceChar3.SetName("AllianceChar3");
            _allianceChar3.Level = 3;
            _allianceChar3.EnsureInWorld();

            _hordeChar1       = Setup.HordeCharacterPool.Create();
            _hordeChar1.Class = WCell.Constants.ClassId.Druid;
            _hordeChar1.Race  = WCell.Constants.RaceId.Tauren;
            _hordeChar1.SetName("HordeChar1");
            _hordeChar1.Level = 1;
            _hordeChar1.EnsureInWorld();

            _hordeChar2       = Setup.HordeCharacterPool.Create();
            _hordeChar2.Class = WCell.Constants.ClassId.Paladin;
            _hordeChar2.Race  = WCell.Constants.RaceId.BloodElf;
            _hordeChar2.SetName("HordeChar2");
            _hordeChar2.Level = 2;
            _hordeChar2.EnsureInWorld();

            _hordeChar3       = Setup.HordeCharacterPool.Create();
            _hordeChar3.Class = WCell.Constants.ClassId.Warlock;
            _hordeChar3.Race  = WCell.Constants.RaceId.Undead;
            _hordeChar3.SetName("HordeChar3");
            _hordeChar3.Level = 3;
            _hordeChar3.EnsureInWorld();
        }