Improved UI

This commit is contained in:
2024-01-25 12:10:29 +01:00
parent 1d0521c0bb
commit b7e7b8abd3
11 changed files with 98 additions and 78 deletions

View File

@ -1,5 +1,16 @@
class_name PacketHandler
extends Node
enum Packet {
INVALID = 0,
PING = 1,
LOGIN = 2,
LOGOUT = 3,
PLAYER_STATE = 10,
PLAYER_MOVE = 11,
}
@export var packet_type: Packet
func handle_packet(_data: PackedByteArray, _peer: PacketPeer):
pass