Networking #2

Zusammengeführt
Lixfel hat 16 Commits von network nach master 2022-05-10 08:53:36 +02:00 zusammengeführt
3 geänderte Dateien mit 2 neuen und 37 gelöschten Zeilen
Nur Änderungen aus Commit 186592f0ec werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -1,36 +0,0 @@
/*
* This file is a part of the SteamWar software.
*
* Copyright (C) 2022 SteamWar.de-Serverteam
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.steamwar.network.packets.client;
import de.steamwar.network.packets.server.ServerNetworkHandler;
import lombok.Data;
@Data
public class TablistNamePacket extends ClientPacket {
private static final long serialVersionUID = -1709089784235478752L;
private int player;
private String tablistName;
@Override
public void handle(ServerNetworkHandler handler) {
handler.handle(this);
}
}

Datei anzeigen

@ -20,7 +20,9 @@
package de.steamwar.network.packets.server; package de.steamwar.network.packets.server;
import de.steamwar.network.packets.client.ClientNetworkHandler; import de.steamwar.network.packets.client.ClientNetworkHandler;
import lombok.Data;
@Data
public class PingPacket extends ServerPacket { public class PingPacket extends ServerPacket {
private static final long serialVersionUID = 714647343959550378L; private static final long serialVersionUID = 714647343959550378L;
private int id; private int id;

Datei anzeigen

@ -27,5 +27,4 @@ public abstract class ServerNetworkHandler extends NetworkHandler {
public void handle(ImALobbyPacket packet) {} public void handle(ImALobbyPacket packet) {}
public void handle(InventoryCallbackPacket packet) {} public void handle(InventoryCallbackPacket packet) {}
public void handle(PrepareSchemPacket packet) {} public void handle(PrepareSchemPacket packet) {}
public void handle(TablistNamePacket packet) {}
} }