public PowerScrollBook() : base(0x2259) { Name = "Power Scroll Book"; Weight = 1.0; Hue = 1153; m_BookCapacity = 50; m_Entries = new ArrayList(); m_Filter = new PowerScrollFilter(); m_Level = SecureLevel.CoOwners; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: m_BookCapacity = reader.ReadInt(); m_Level = (SecureLevel)reader.ReadInt(); m_BookName = reader.ReadString(); m_Filter = new PowerScrollFilter(reader); int count = reader.ReadEncodedInt(); m_Entries = new ArrayList(count); for (int i = 0; i < count; ++i) { int v = reader.ReadEncodedInt(); switch (v) { case 1: m_Entries.Add(new PowerScrollBookEntry(reader)); break; } } break; } }