public Character(Character characterToCopy) { ID = characterToCopy.ID; Level = characterToCopy.Level; Name = characterToCopy.Name; DeathAugmentations = characterToCopy.DeathAugmentations; PKStatus = characterToCopy.PKStatus; PlayerKill = characterToCopy.PlayerKill; inventory = characterToCopy.inventory.ToDictionary(x => x.Key, x => x.Value.Copy()); packs = characterToCopy.packs.ToDictionary(x => x.Key, x => x.Value.Copy()); Debug.Assert(characterToCopy.unloadedItems.Count == 0); }
public Character() { ID = 0x0; Level = 0; Name = ""; DeathAugmentations = 0; PKStatus = PKStatusEnum.NPK_PKStatus; PlayerKill = false; inventory = new Dictionary <uint, Item>(); packs = new Dictionary <uint, Item>(); unloadedItems = new List <uint>(); initialItemsPrinted = false; }