Exemple #1
0
        public Totem(Item pItem, Character pOwner)
        {
            m_pTotem = new DbSyntotem
            {
                Itemid   = pItem.Identity,
                Synid    = pOwner.SyndicateIdentity,
                Userid   = pOwner.Identity,
                Username = pOwner.Name
            };

            if (m_pTotem.Synid <= 0)
            {
                throw new Exception("Synid cannot be zero.");
            }

            m_pItem = pItem;
        }
Exemple #2
0
 public Totem(DbSyntotem dbTotem, Item pItem)
 {
     m_pItem  = pItem;
     m_pTotem = dbTotem;
 }