summaryrefslogtreecommitdiff
path: root/packets/map_server/close_dialog_button_packet.gd
diff options
context:
space:
mode:
Diffstat (limited to 'packets/map_server/close_dialog_button_packet.gd')
-rw-r--r--packets/map_server/close_dialog_button_packet.gd23
1 files changed, 23 insertions, 0 deletions
diff --git a/packets/map_server/close_dialog_button_packet.gd b/packets/map_server/close_dialog_button_packet.gd
new file mode 100644
index 0000000..db6ff02
--- /dev/null
+++ b/packets/map_server/close_dialog_button_packet.gd
@@ -0,0 +1,23 @@
+## rAthena References:
+## - ZC_CLOSE_DIALOG
+## - PACKET_ZC_CLOSE_DIALOG
+## - clif_scriptclose
+class_name CloseDialogButtonPacket
+extends Packet
+
+
+const HEADER := 0x00b6
+const BYTE_LENGTH := 6
+
+
+## Byte Type: u32
+## Byte Length: 4
+var entity_id: int
+
+
+static func from_bytes(bytes: PackedByteArray) -> CloseDialogButtonPacket:
+ var packet = CloseDialogButtonPacket.new()
+
+ packet.entity_id = bytes.decode_u32(2)
+
+ return packet