public void Deserialize(IDataReader reader) { HouseId = (UInt32)reader.ReadVarInt(); DoorsOnMap = new UInt32[reader.ReadShort()]; for (var i = 0; i < DoorsOnMap.Length; i++) { DoorsOnMap[i] = (UInt32)reader.ReadInt(); } Properties = new HouseInstanceInformations(); Properties.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); m_houseInfos = ProtocolTypeManager.GetInstance <HouseInstanceInformations>(reader.ReadUShort()); m_houseInfos.Deserialize(reader); m_realPrice = reader.ReadVarUhLong(); m_isLocked = reader.ReadBoolean(); m_worldX = reader.ReadShort(); m_worldY = reader.ReadShort(); m_mapId = reader.ReadInt(); m_subAreaId = reader.ReadVarUhShort(); }
public override void Deserialize(IDataReader reader) { HouseId = reader.ReadVarUhInt(); var doorsOnMapCount = reader.ReadUShort(); DoorsOnMap = new List <int>(); for (var doorsOnMapIndex = 0; doorsOnMapIndex < doorsOnMapCount; doorsOnMapIndex++) { DoorsOnMap.Add(reader.ReadInt()); } Properties = ProtocolTypeManager.GetInstance <HouseInstanceInformations>(reader.ReadUShort()); Properties.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { HouseId = reader.ReadVarUhInt(); var DoorsOnMapCount = reader.ReadShort(); DoorsOnMap = new List <int>(); for (var i = 0; i < DoorsOnMapCount; i++) { DoorsOnMap.Add(reader.ReadInt()); } Properties = ProtocolTypeManager.GetInstance(reader.ReadUShort()); Properties.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { int doorsOnMapCount = reader.ReadUShort(); int doorsOnMapIndex; m_doorsOnMap = new System.Collections.Generic.List <int>(); for (doorsOnMapIndex = 0; (doorsOnMapIndex < doorsOnMapCount); doorsOnMapIndex = (doorsOnMapIndex + 1)) { m_doorsOnMap.Add(reader.ReadInt()); } m_properties = ProtocolManager.GetTypeInstance <HouseInstanceInformations>(reader.ReadUShort()); m_properties.Deserialize(reader); m_houseId = reader.ReadVarUhInt(); }
public override void Deserialize(ICustomDataInput reader) { HouseId = reader.ReadVarInt(); var countDoorsOnMap = reader.ReadShort(); DoorsOnMap = new List <int>(); for (short i = 0; i < countDoorsOnMap; i++) { DoorsOnMap.Add(reader.ReadInt()); } var propertiesTypeId = reader.ReadShort(); Properties = new HouseInstanceInformations(); Properties.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { houseId = reader.ReadVarInt(); if (houseId < 0) { throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0"); } var limit = reader.ReadShort(); var doorsOnMap_ = new int[limit]; for (int i = 0; i < limit; i++) { doorsOnMap_[i] = reader.ReadInt(); if (doorsOnMap_[i] < 0) { throw new Exception("Forbidden value on doorsOnMap_[i] = " + doorsOnMap_[i] + ", it doesn't respect the following condition : doorsOnMap_[i] < 0"); } } doorsOnMap = doorsOnMap_; properties = Types.ProtocolTypeManager.GetInstance <HouseInstanceInformations>(reader.ReadShort()); properties.Deserialize(reader); }