示例#1
0
 public DuelProfile(ArenaDuel duel)
 {
     Entries              = duel.Entries;
     RoomType             = duel.RoomType;
     BattleMode           = duel.BattleMode;
     Ranked               = duel.Ranked;
     TimeLimit            = duel.TimeLimit;
     EntryFee             = duel.EntryFee;
     PetSlots             = duel.PetSlots;
     RidingFlyingAllowed  = duel.RidingFlyingAllowed;
     RangedWeaponsAllowed = duel.RangedWeaponsAllowed;
     SummonSpellsAllowed  = duel.SummonSpellsAllowed;
     FieldSpellsAllowed   = duel.FieldSpellsAllowed;
     PotionRules          = duel.PotionRules;
 }
示例#2
0
            public DuelProfile(GenericReader reader)
            {
                int version = reader.ReadInt();

                Entries              = reader.ReadInt();
                RoomType             = (RoomType)reader.ReadInt();
                BattleMode           = (BattleMode)reader.ReadInt();
                Ranked               = reader.ReadBool();
                TimeLimit            = (TimeLimit)reader.ReadInt();
                EntryFee             = (EntryFee)reader.ReadInt();
                PetSlots             = reader.ReadInt();
                RidingFlyingAllowed  = reader.ReadBool();
                RangedWeaponsAllowed = reader.ReadBool();
                SummonSpellsAllowed  = reader.ReadBool();
                FieldSpellsAllowed   = reader.ReadBool();
                PotionRules          = (PotionRules)reader.ReadInt();
            }