示例#1
0
 private void EnsureChar(ref TestCharacter chr, CharacterPool pool)
 {
     chr = pool.Create();
     chr.SetMoney(100000);
     chr.GodMode = true;
     chr.EnsureInWorldAndLiving();
 }
示例#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();
     }
 }
示例#3
0
        public void TestInitialize()
        {
            chr1.EnsureInWorldAndLiving();
            chr2.EnsureInWorldAndLiving();

            chr1.Inventory.Purge();
            chr2.Inventory.Purge();

            chr1.SetMoney(10000);
            chr2.SetMoney(1000);
        }