コード例 #1
0
ファイル: Character.cs プロジェクト: henrihein/Ceebeetle
 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();
 }
コード例 #2
0
ファイル: Character.cs プロジェクト: henrihein/Ceebeetle
 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;
 }
コード例 #3
0
        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);
        }