private void SetFlag(BellOfSummoningFlags flag, bool value)
 {
     if (value)
         m_Flags |= flag;
     else
         m_Flags &= ~flag;
 }
Exemplo n.º 2
0
 private void SetFlag(BellOfSummoningFlags flag, bool value)
 {
     if (value)
     {
         m_Flags |= flag;
     }
     else
     {
         m_Flags &= ~flag;
     }
 }
Exemplo n.º 3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
                m_Sound         = reader.ReadInt();
                m_UsesRemaining = reader.ReadInt();
                m_Flags         = (BellOfSummoningFlags)reader.ReadInt();
                m_DelaySeconds  = reader.ReadDouble();
                break;
            }
        }
Exemplo n.º 4
0
 private bool GetFlag(BellOfSummoningFlags flag)
 {
     return((m_Flags & flag) != 0);
 }
 private bool GetFlag(BellOfSummoningFlags flag)
 {
     return ((m_Flags & flag) != 0);
 }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
                case 0:
                    m_Sound = reader.ReadInt();
                    m_UsesRemaining = reader.ReadInt();
                    m_Flags = (BellOfSummoningFlags)reader.ReadInt();
                    m_DelaySeconds = reader.ReadDouble();
                    break;
            }
        }