private void EnsureChar(ref TestCharacter chr, CharacterPool pool) { chr = pool.Create(); chr.SetMoney(100000); chr.GodMode = true; chr.EnsureInWorldAndLiving(); }
void EnsureChar(ref TestCharacter chr, CharacterPool pool) { //if (chr == null || chr.IsInWorld) { chr = pool.Create(); chr.SetMoney(100000); chr.GodMode = true; chr.EnsureInWorldAndLiving(); } }
public void TestInitialize() { chr1.EnsureInWorldAndLiving(); chr2.EnsureInWorldAndLiving(); chr1.Inventory.Purge(); chr2.Inventory.Purge(); chr1.SetMoney(10000); chr2.SetMoney(1000); }