Example #1
0
        public UserMagic(BinaryReader reader)
        {
            Spell = (Spell)reader.ReadByte();
            Info  = MagicInfo.GetMagicInfo(Spell);

            Level      = reader.ReadByte();
            Key        = reader.ReadByte();
            Experience = reader.ReadUInt16();

            if (Envir.LoadVersion < 15)
            {
                return;
            }
            IsTempSpell = reader.ReadBoolean();
        }
Example #2
0
 public UserMagic(Spell spell)
 {
     Spell = spell;
     Info  = MagicInfo.GetMagicInfo(Spell);
 }