public RewardMarkerXfer() { Spells = new List <string>(); Abilities = new List <string>(); Monsters = new List <string>(); RewardType = (RewardFlags)0xFF; }
public override bool FromStream(Stream mstream, short ParsingRule, ThingDb.Thing thing) { NoxBinaryReader br = new NoxBinaryReader(mstream); RewardType = (RewardFlags)br.ReadUInt32(); Unknown1 = br.ReadInt32(); // spells short count = br.ReadInt16(); Spells = new List <string>(count); while (count > 0) { Spells.Add(br.ReadString()); count--; } // abilities count = br.ReadInt16(); Abilities = new List <string>(count); while (count > 0) { Abilities.Add(br.ReadString()); count--; } // monster scrolls count = br.ReadInt16(); Monsters = new List <string>(count); while (count > 0) { Monsters.Add(br.ReadString()); count--; } Unknown2 = br.ReadInt32(); Unknown3 = br.ReadInt32(); Unknown4 = br.ReadInt32(); Unknown5 = br.ReadInt32(); Unknown6 = br.ReadInt32(); if (ParsingRule >= 62) { ActivateChance = br.ReadInt32(); } if (ParsingRule >= 63) { RareOrSpecial = br.ReadBoolean(); } return(true); }