public void SendToGame(int gameId, GSPacketIn pkg) { GSPacketIn wrapper = new GSPacketIn(2, gameId); wrapper.WritePacket(pkg); this.SendTCP(wrapper); }
public void SendPacketToPlayer(int playerId, GSPacketIn pkg) { GSPacketIn p = new GSPacketIn((byte)eFightPackageType.SEND_TO_USER, playerId); p.WritePacket(pkg); SendTCP(p); }
public void SendToGame(int gameId, GSPacketIn pkg) { GSPacketIn gSPacketIn = new GSPacketIn(2, gameId); gSPacketIn.WritePacket(pkg); this.SendTCP(gSPacketIn); }
public void SendToGame(int gameId, GSPacketIn pkg) { GSPacketIn wrapper = new GSPacketIn((int)eFightPackageType.SEND_TO_GAME, gameId); wrapper.WritePacket(pkg); SendTCP(wrapper); }
public void SendPacketToPlayer(int playerId, GSPacketIn pkg) { GSPacketIn gSPacketIn = new GSPacketIn(32, playerId); gSPacketIn.WritePacket(pkg); this.SendTCP(gSPacketIn); }
public void SendToGameAllPlayer(int gameId, IGamePlayer except, GSPacketIn content) { GSPacketIn pkg = new GSPacketIn(71, gameId); pkg.Parameter1 = ((except != null) ? except.GamePlayerId : -1); pkg.WritePacket(content); this.SendTCP(pkg); }
public void SendPacketToPlayer(int playerId, GSPacketIn pkg, int gameId) { GSPacketIn p = new GSPacketIn(32, playerId); p.Parameter1 = gameId; p.WritePacket(pkg); this.SendTCP(p); }
public void SendToRoom(int roomId, GSPacketIn pkg, IGamePlayer except) { GSPacketIn p = new GSPacketIn((byte)eFightPackageType.SEND_TO_ROOM, roomId); if (except != null) { p.Parameter1 = except.PlayerCharacter.ID; p.Parameter2 = except.GamePlayerId; } else { p.Parameter1 = 0; p.Parameter2 = 0; } p.WritePacket(pkg); SendTCP(p); }
public void SendToRoom(int roomId, GSPacketIn pkg, IGamePlayer except) { GSPacketIn p = new GSPacketIn(67, roomId); if (except != null) { p.Parameter1 = except.PlayerCharacter.ID; p.Parameter2 = except.GamePlayerId; } else { p.Parameter1 = 0; p.Parameter2 = 0; } p.WritePacket(pkg); this.SendTCP(p); }