public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 1: { m_IsActiveSeller = reader.ReadBool(); goto case 0; } case 0: { m_Owner = reader.ReadMobile(); m_Rumors = new BarkeeperRumor[reader.ReadEncodedInt()]; for (int i = 0; i < m_Rumors.Length; ++i) { m_Rumors[i] = BarkeeperRumor.Deserialize(reader); } m_TipMessage = reader.ReadString(); break; } } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 1: { House = (BaseHouse)reader.ReadItem(); goto case 0; } case 0: { m_Owner = reader.ReadMobile(); m_Rumors = new BarkeeperRumor[reader.ReadEncodedInt()]; for (int i = 0; i < m_Rumors.Length; ++i) { m_Rumors[i] = BarkeeperRumor.Deserialize(reader); } m_TipMessage = reader.ReadString(); break; } } if (version < 1) { Timer.DelayCall(TimeSpan.Zero, new TimerCallback(UpgradeFromVersion0)); } }