public CCBCharacter() { m_id = m_nextId++; m_name = System.String.Format("NewCharacter{0}", m_id); m_propertyList = new CharacterPropertyList(); m_items = new CCBLockedBag("Items"); m_bags = new CCBBags(); }
public CCBCharacter(string name) { m_id = m_nextId++; m_name = name; m_propertyList = new CharacterPropertyList(); m_items = new CCBLockedBag("Items"); m_bags = new CCBBags(); m_image = null; }
public int AddFrom(CharacterPropertyList propertyList) { int cBefore = this.Count; foreach (CCBCharacterProperty property in propertyList) { if (!Contains(property.Name)) { this.Add(new CCBCharacterPropertyTemplate(property)); } } System.Diagnostics.Debug.Assert(this.Count >= cBefore); return(this.Count - cBefore); }