From ed24abe67f0f4f48356c90d8444fd53279703ef2 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 24 Apr 2022 21:44:51 +0200 Subject: [PATCH] :tada: Add Network Packets --- .../steamwar/network/packets/client/ExecuteCommandPacket.java | 2 ++ src/de/steamwar/network/packets/client/ImALobbyPacket.java | 2 ++ .../network/packets/client/InventoryCallbackPacket.java | 2 ++ src/de/steamwar/network/packets/client/PrepareSchemPacket.java | 2 ++ src/de/steamwar/network/packets/common/FightEndsPacket.java | 2 ++ src/de/steamwar/network/packets/common/FightInfoPacket.java | 2 ++ .../steamwar/network/packets/server/BaumemberUpdatePacket.java | 2 ++ .../steamwar/network/packets/server/CloseInventoryPacket.java | 2 ++ src/de/steamwar/network/packets/server/InventoryPacket.java | 2 ++ src/de/steamwar/network/packets/server/PingPacket.java | 2 ++ .../steamwar/network/packets/server/StartingServerPacket.java | 2 ++ 11 files changed, 22 insertions(+) diff --git a/src/de/steamwar/network/packets/client/ExecuteCommandPacket.java b/src/de/steamwar/network/packets/client/ExecuteCommandPacket.java index a2b6570..aec2fcc 100644 --- a/src/de/steamwar/network/packets/client/ExecuteCommandPacket.java +++ b/src/de/steamwar/network/packets/client/ExecuteCommandPacket.java @@ -20,9 +20,11 @@ package de.steamwar.network.packets.client; import de.steamwar.network.packets.server.ServerNetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; @Data +@AllArgsConstructor public class ExecuteCommandPacket extends ClientPacket { private static final long serialVersionUID = 6283457297487602016L; diff --git a/src/de/steamwar/network/packets/client/ImALobbyPacket.java b/src/de/steamwar/network/packets/client/ImALobbyPacket.java index 5656f63..8968c37 100644 --- a/src/de/steamwar/network/packets/client/ImALobbyPacket.java +++ b/src/de/steamwar/network/packets/client/ImALobbyPacket.java @@ -20,9 +20,11 @@ package de.steamwar.network.packets.client; import de.steamwar.network.packets.server.ServerNetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; @Data +@AllArgsConstructor public class ImALobbyPacket extends ClientPacket { private static final long serialVersionUID = 8110246509205246654L; diff --git a/src/de/steamwar/network/packets/client/InventoryCallbackPacket.java b/src/de/steamwar/network/packets/client/InventoryCallbackPacket.java index c461102..df605a4 100644 --- a/src/de/steamwar/network/packets/client/InventoryCallbackPacket.java +++ b/src/de/steamwar/network/packets/client/InventoryCallbackPacket.java @@ -20,9 +20,11 @@ package de.steamwar.network.packets.client; import de.steamwar.network.packets.server.ServerNetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; @Data +@AllArgsConstructor public class InventoryCallbackPacket extends ClientPacket { private static final long serialVersionUID = -261823209186008718L; private int position; diff --git a/src/de/steamwar/network/packets/client/PrepareSchemPacket.java b/src/de/steamwar/network/packets/client/PrepareSchemPacket.java index 8d195c5..6b5f6e3 100644 --- a/src/de/steamwar/network/packets/client/PrepareSchemPacket.java +++ b/src/de/steamwar/network/packets/client/PrepareSchemPacket.java @@ -20,9 +20,11 @@ package de.steamwar.network.packets.client; import de.steamwar.network.packets.server.ServerNetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; @Data +@AllArgsConstructor public class PrepareSchemPacket extends ClientPacket { private static final long serialVersionUID = -4798561188105813349L; diff --git a/src/de/steamwar/network/packets/common/FightEndsPacket.java b/src/de/steamwar/network/packets/common/FightEndsPacket.java index 2f91618..dfea7ba 100644 --- a/src/de/steamwar/network/packets/common/FightEndsPacket.java +++ b/src/de/steamwar/network/packets/common/FightEndsPacket.java @@ -20,11 +20,13 @@ package de.steamwar.network.packets.common; import de.steamwar.network.packets.NetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; import java.util.List; @Data +@AllArgsConstructor public class FightEndsPacket extends CommonPacket { private static final long serialVersionUID = 1279352415549011332L; diff --git a/src/de/steamwar/network/packets/common/FightInfoPacket.java b/src/de/steamwar/network/packets/common/FightInfoPacket.java index 1d9e1e5..e273e2b 100644 --- a/src/de/steamwar/network/packets/common/FightInfoPacket.java +++ b/src/de/steamwar/network/packets/common/FightInfoPacket.java @@ -20,11 +20,13 @@ package de.steamwar.network.packets.common; import de.steamwar.network.packets.NetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; import java.util.List; @Data +@AllArgsConstructor public class FightInfoPacket extends CommonPacket{ private static final long serialVersionUID = 7448644597856605853L; diff --git a/src/de/steamwar/network/packets/server/BaumemberUpdatePacket.java b/src/de/steamwar/network/packets/server/BaumemberUpdatePacket.java index ac610d5..386a0fc 100644 --- a/src/de/steamwar/network/packets/server/BaumemberUpdatePacket.java +++ b/src/de/steamwar/network/packets/server/BaumemberUpdatePacket.java @@ -20,9 +20,11 @@ package de.steamwar.network.packets.server; import de.steamwar.network.packets.client.ClientNetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; @Data +@AllArgsConstructor public class BaumemberUpdatePacket extends ServerPacket{ private static final long serialVersionUID = 6863118892424244051L; diff --git a/src/de/steamwar/network/packets/server/CloseInventoryPacket.java b/src/de/steamwar/network/packets/server/CloseInventoryPacket.java index 691df1a..660e3ba 100644 --- a/src/de/steamwar/network/packets/server/CloseInventoryPacket.java +++ b/src/de/steamwar/network/packets/server/CloseInventoryPacket.java @@ -20,9 +20,11 @@ package de.steamwar.network.packets.server; import de.steamwar.network.packets.client.ClientNetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; @Data +@AllArgsConstructor public class CloseInventoryPacket extends ServerPacket { private static final long serialVersionUID = -2191021190060504521L; diff --git a/src/de/steamwar/network/packets/server/InventoryPacket.java b/src/de/steamwar/network/packets/server/InventoryPacket.java index 9ec6a1d..da59488 100644 --- a/src/de/steamwar/network/packets/server/InventoryPacket.java +++ b/src/de/steamwar/network/packets/server/InventoryPacket.java @@ -20,11 +20,13 @@ package de.steamwar.network.packets.server; import de.steamwar.network.packets.client.ClientNetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; import java.util.Map; @Data +@AllArgsConstructor public class InventoryPacket extends ServerPacket { private static final long serialVersionUID = 8071052544654047316L; diff --git a/src/de/steamwar/network/packets/server/PingPacket.java b/src/de/steamwar/network/packets/server/PingPacket.java index f40dbb1..30342c3 100644 --- a/src/de/steamwar/network/packets/server/PingPacket.java +++ b/src/de/steamwar/network/packets/server/PingPacket.java @@ -20,9 +20,11 @@ package de.steamwar.network.packets.server; import de.steamwar.network.packets.client.ClientNetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; @Data +@AllArgsConstructor public class PingPacket extends ServerPacket { private static final long serialVersionUID = 714647343959550378L; private int id; diff --git a/src/de/steamwar/network/packets/server/StartingServerPacket.java b/src/de/steamwar/network/packets/server/StartingServerPacket.java index b819e37..30d32fb 100644 --- a/src/de/steamwar/network/packets/server/StartingServerPacket.java +++ b/src/de/steamwar/network/packets/server/StartingServerPacket.java @@ -20,9 +20,11 @@ package de.steamwar.network.packets.server; import de.steamwar.network.packets.client.ClientNetworkHandler; +import lombok.AllArgsConstructor; import lombok.Data; @Data +@AllArgsConstructor public class StartingServerPacket extends ServerPacket { private static final long serialVersionUID = 2808607245898121801L; private int user;