public HouseInformationsInside(uint houseId, uint modelId, Types.HouseInstanceInformations houseInfos, short worldX, short worldY) : base(houseId, modelId) { this.houseInfos = houseInfos; this.worldX = worldX; this.worldY = worldY; }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); 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_; limit = reader.ReadShort(); var houseInstances_ = new Types.HouseInstanceInformations[limit]; for (int i = 0; i < limit; i++) { houseInstances_[i] = new Types.HouseInstanceInformations(); houseInstances_[i].Deserialize(reader); } houseInstances = houseInstances_; }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); houseInfos = ProtocolTypeManager.GetInstance <Types.HouseInstanceInformations>(reader.ReadUShort()); houseInfos.Deserialize(reader); worldX = reader.ReadShort(); worldY = reader.ReadShort(); }
public AccountHouseInformations(uint houseId, uint modelId, Types.HouseInstanceInformations houseInfos, short worldX, short worldY, double mapId, uint subAreaId) : base(houseId, modelId) { this.houseInfos = houseInfos; this.worldX = worldX; this.worldY = worldY; this.mapId = mapId; this.subAreaId = subAreaId; }
public override void Deserialize(IReader reader) { houseId = reader.ReadVarUhInt(); var limit = reader.ReadUShort(); doorsOnMap = new int[limit]; for (int i = 0; i < limit; i++) { (doorsOnMap as int[])[i] = reader.ReadInt(); } properties = ProtocolTypeManager.GetInstance <Types.HouseInstanceInformations>(reader.ReadUShort()); properties.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); var limit = (ushort)reader.ReadUShort(); doorsOnMap = new int[limit]; for (int i = 0; i < limit; i++) { doorsOnMap[i] = reader.ReadInt(); } limit = (ushort)reader.ReadUShort(); houseInstances = new Types.HouseInstanceInformations[limit]; for (int i = 0; i < limit; i++) { houseInstances[i] = new Types.HouseInstanceInformations(); houseInstances[i].Deserialize(reader); } }
public HousePropertiesMessage(uint houseId, IEnumerable <int> doorsOnMap, Types.HouseInstanceInformations properties) { this.houseId = houseId; this.doorsOnMap = doorsOnMap; this.properties = properties; }