private void OnChat(GamePacketReader packet) { packet.ReadInt16(); // player packet.ReadUnicode(256); // message }
private void OnChat(GamePacketReader packet) { string msg = packet.ReadUnicode(256); Game.Chat(this, msg); }
private void OnPlayerEnter(GamePacketReader packet) { string name = packet.ReadUnicode(20); int pos = packet.ReadByte(); if (pos < 8) _room.Names[pos] = name; }
private void OnPlayerInfo(GamePacketReader packet) { if (Name != null) return; Name = packet.ReadUnicode(20); }