diff --git a/src/de/steamwar/network/packets/api/BauStatusRequestPacket.java b/src/de/steamwar/network/packets/api/BauStatusRequestPacket.java new file mode 100644 index 0000000..1673799 --- /dev/null +++ b/src/de/steamwar/network/packets/api/BauStatusRequestPacket.java @@ -0,0 +1,36 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + +package de.steamwar.network.packets.api; + +import de.steamwar.network.packets.NetworkPacket; +import lombok.AllArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.NoArgsConstructor; + +@AllArgsConstructor +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +@Getter +public class BauStatusRequestPacket extends NetworkPacket { + private static final long serialVersionUID = 1442956004669738962L; + private int playerId; + private String responseCode; +} diff --git a/src/de/steamwar/network/packets/api/EventReloadPacket.java b/src/de/steamwar/network/packets/api/EventReloadPacket.java new file mode 100644 index 0000000..80af630 --- /dev/null +++ b/src/de/steamwar/network/packets/api/EventReloadPacket.java @@ -0,0 +1,29 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + +package de.steamwar.network.packets.api; + +import de.steamwar.network.packets.NetworkPacket; +import lombok.EqualsAndHashCode; + +@EqualsAndHashCode(callSuper = true) +public class EventReloadPacket extends NetworkPacket { + + private static final long serialVersionUID = 1814658967167959572L; +} diff --git a/src/de/steamwar/network/packets/client/AnvilInventoryCallbackPacket.java b/src/de/steamwar/network/packets/client/AnvilInventoryCallbackPacket.java new file mode 100644 index 0000000..fc33bb8 --- /dev/null +++ b/src/de/steamwar/network/packets/client/AnvilInventoryCallbackPacket.java @@ -0,0 +1,29 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + +package de.steamwar.network.packets.client; + +import de.steamwar.network.packets.NetworkPacket; + +public class AnvilInventoryCallbackPacket extends NetworkPacket { + + private static final long serialVersionUID = 9000793526796115661L; + private int player; + private String text; +} diff --git a/src/de/steamwar/network/packets/server/AnvilInventoryPacket.java b/src/de/steamwar/network/packets/server/AnvilInventoryPacket.java new file mode 100644 index 0000000..a07e3e3 --- /dev/null +++ b/src/de/steamwar/network/packets/server/AnvilInventoryPacket.java @@ -0,0 +1,40 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + +package de.steamwar.network.packets.server; + +import de.steamwar.network.packets.NetworkPacket; +import lombok.AllArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.NoArgsConstructor; + +@AllArgsConstructor +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +@Getter +public class AnvilInventoryPacket extends NetworkPacket { + + private static final long serialVersionUID = -2283899431463763871L; + + private String title; + private int player; + private String defaultText; + private String item; +} diff --git a/src/de/steamwar/network/packets/server/api/BauStatusResponsePacket.java b/src/de/steamwar/network/packets/server/api/BauStatusResponsePacket.java new file mode 100644 index 0000000..3261c7f --- /dev/null +++ b/src/de/steamwar/network/packets/server/api/BauStatusResponsePacket.java @@ -0,0 +1,40 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + +package de.steamwar.network.packets.server.api; + +import de.steamwar.network.packets.NetworkPacket; +import lombok.AllArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.NoArgsConstructor; + +import java.util.List; + +@AllArgsConstructor +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +@Getter +public class BauStatusResponsePacket extends NetworkPacket { + private static final long serialVersionUID = 4338519342870271560L; + + private String responseCode; + private boolean serverStatus; + private List onlinePlayers; +}