Esempio n. 1
0
 public void Rebase(CCBGame gameFrom)
 {
     m_propertyList.Clear();
     foreach (CCBCharacter character in gameFrom.Characters)
     {
         m_propertyList.AddFrom(character.PropertyList);
     }
     m_bags.Clear();
     if (null != gameFrom.GroupBags)
     {
         foreach (CCBBag bag in gameFrom.GroupBags)
         {
             m_bags.Add(bag);
         }
     }
 }
Esempio n. 2
0
        public CCBBag AddBag(string name)
        {
            CCBBag newBag = new CCBBag(name);

            CCBDirty.kDirty = true;
            if (null == m_bags)
            {
                m_bags = new CCBBags();
            }
            m_bags.Add(newBag);
            return(newBag);
        }
Esempio n. 3
0
 public CCBGame(string name, CCBGameTemplate templateFrom)
 {
     m_name                 = name;
     m_characters           = new CCBCharacterList();
     m_groupItems           = new CCBBag(m_kGroupItemLabel);
     m_groupBags            = new CCBBags();
     m_propertyTemplateList = new CharacterPropertyTemplateList();
     foreach (CCBCharacterPropertyTemplate templateProperty in templateFrom.PropertyTemplateList)
     {
         m_propertyTemplateList.Add(new CCBCharacterPropertyTemplate(templateProperty));
     }
     foreach (CCBBag bag in templateFrom.Bags)
     {
         m_groupBags.Add(new CCBBag(bag));
     }
 }