Networking #2
@ -21,20 +21,24 @@ package de.steamwar.network.packets.client;
|
||||
|
||||
import de.steamwar.network.packets.server.ServerNetworkHandler;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NonNull;
|
||||
|
||||
@Builder
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
|
||||
public class InventoryCallbackPacket extends ClientPacket {
|
||||
private static final long serialVersionUID = -261823209186008718L;
|
||||
@NonNull
|
||||
@Builder.Default
|
||||
private int position = -1;
|
||||
@NonNull
|
||||
private int owner;
|
||||
@NonNull
|
||||
private CallbackType type;
|
||||
@NonNull
|
||||
@Builder.Default
|
||||
private ClickType clickType = ClickType.UNKNOWN;
|
||||
|
||||
@Override
|
||||
|
@ -20,11 +20,13 @@
|
||||
package de.steamwar.network.packets.common;
|
||||
|
||||
import de.steamwar.network.packets.NetworkHandler;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NonNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Builder
|
||||
@Data
|
||||
public class FightEndsPacket extends CommonPacket {
|
||||
|
||||
|
@ -20,11 +20,13 @@
|
||||
package de.steamwar.network.packets.common;
|
||||
|
||||
import de.steamwar.network.packets.NetworkHandler;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NonNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Builder
|
||||
@Data
|
||||
public class FightInfoPacket extends CommonPacket{
|
||||
|
||||
|
@ -26,7 +26,7 @@ import lombok.NonNull;
|
||||
@Data
|
||||
public class StartingServerPacket extends ServerPacket {
|
||||
private static final long serialVersionUID = 2808607245898121801L;
|
||||
@NonNull
|
||||
|
||||
private int user;
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren
Überlegung (nichts für diesen PR, aber potentiell etwas für einen NachfolgePR): CommonGUI?
Möglich, kann ich mich hiernach mal dran setzen