From 26261ab2b18b8c2046bade9b153f132bad1a1adc Mon Sep 17 00:00:00 2001
From: andy <andynewjack@protonmail.com>
Date: Thu, 26 Dec 2019 19:00:51 -0400
Subject: [PATCH] chat packet struct for issue_038 in elseware.

---
 src/packet/ship.rs | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/packet/ship.rs b/src/packet/ship.rs
index f89bc66..885d007 100644
--- a/src/packet/ship.rs
+++ b/src/packet/ship.rs
@@ -248,3 +248,20 @@ pub struct AddToRoom {
     pub padding: u32,
     pub playerinfo: PlayerInfo,
 }
+
+#[pso_packet(0x06)]
+pub struct PlayerChat {
+    pub padding: u32,
+    pub guildcard: u32,
+    pub message: String,
+}
+
+impl PlayerChat {
+    pub fn new(padding: u32, guildcard: u32, message: String) -> PlayerChat {
+        PlayerChat {
+            padding: padding,
+            guildcard: guildcard,
+            message: message,
+        }
+    }
+}
\ No newline at end of file