public override void Read(byte[] packet) { ProtocolReader reader = new ProtocolReader(packet); this.Width = reader.ReadInt32(); this.Height = reader.ReadInt32(); this.Name = reader.ReadString(); this.FP = reader.ReadUInt32(); this.Background = reader.ReadInt32(); this.AllowPlayerTeleport = reader.ReadBool(); this.ShowDisplays = reader.ReadBool(); this.ExtraXml = reader.ReadVector <string>(new ReadItemDelegate(reader.ReadLongString)); }
public override void Read(byte[] packet) { ProtocolReader reader = new ProtocolReader(packet); this.Width = reader.ReadInt32(); this.Height = reader.ReadInt32(); this.Name = reader.ReadString(); this.FP = reader.ReadUInt32(); this.Background = reader.ReadInt32(); this.AllowPlayerTeleport = reader.ReadBool(); this.ShowDisplays = reader.ReadBool(); this.ExtraXml = reader.ReadVector<string>(new ReadItemDelegate(reader.ReadLongString)); }