From 1c7953e6a67be9b0044175393796e8bafdf45ed2 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 14 五月 2025 11:55:57 +0800
Subject: [PATCH] 16 卡牌服务端(邮件功能;)
---
ServerPack/MapServerPack/HA3_Function/MailStateChange.h | 14 ++++++++++++++
ServerPack/MapServerPack/HA3_Function/MailList.des | 1 +
ServerPack/MapServerPack/HA3_Function/MailStateChange.des | 1 +
ServerPack/MapServerPack/HA3_Function/MailStateChange | 0
ClientPack/ClientToMapServer/CA5_Function/RequestMail.des | 1 +
ClientPack/ClientToMapServer/CA5_Function/RequestMail | 0
ServerPack/MapServerPack/HA3_Function/MailList.h | 33 +++++++++++++++++++++++++++++++++
ServerPack/MapServerPack/HA3_Function/MailList | 0
ClientPack/ClientToMapServer/CA5_Function/RequestMail.h | 8 ++++++++
9 files changed, 58 insertions(+), 0 deletions(-)
diff --git a/ClientPack/ClientToMapServer/CA5_Function/RequestMail b/ClientPack/ClientToMapServer/CA5_Function/RequestMail
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CA5_Function/RequestMail
diff --git a/ClientPack/ClientToMapServer/CA5_Function/RequestMail.des b/ClientPack/ClientToMapServer/CA5_Function/RequestMail.des
new file mode 100644
index 0000000..2cbdac2
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CA5_Function/RequestMail.des
@@ -0,0 +1 @@
+A5 37 请求邮件操作 #tagCMRequestMail
diff --git a/ClientPack/ClientToMapServer/CA5_Function/RequestMail.h b/ClientPack/ClientToMapServer/CA5_Function/RequestMail.h
new file mode 100644
index 0000000..4919e17
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CA5_Function/RequestMail.h
@@ -0,0 +1,8 @@
+// A5 37 请求邮件操作 #tagCMRequestMail
+
+struct tagCMRequestMail
+{
+ tagHead Head;
+ char GUID[36]; //邮件GUID,可传空,默认针对个人邮件的批量处理,如批量领取、批量删除已领邮件等;全服邮件暂时限制只能单封邮件处理
+ BYTE ReqType; //0-设置已读,1-领取邮件,2-删除邮件
+};
diff --git a/ServerPack/MapServerPack/HA3_Function/MailList b/ServerPack/MapServerPack/HA3_Function/MailList
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ServerPack/MapServerPack/HA3_Function/MailList
diff --git a/ServerPack/MapServerPack/HA3_Function/MailList.des b/ServerPack/MapServerPack/HA3_Function/MailList.des
new file mode 100644
index 0000000..ece80ef
--- /dev/null
+++ b/ServerPack/MapServerPack/HA3_Function/MailList.des
@@ -0,0 +1 @@
+A3 62 邮件列表 #tagMCMailList
diff --git a/ServerPack/MapServerPack/HA3_Function/MailList.h b/ServerPack/MapServerPack/HA3_Function/MailList.h
new file mode 100644
index 0000000..20a1e48
--- /dev/null
+++ b/ServerPack/MapServerPack/HA3_Function/MailList.h
@@ -0,0 +1,33 @@
+// A3 62 邮件列表 #tagMCMailList
+
+struct tagMCMailItem
+{
+ DWORD ItemID; //物品ID
+ DWORD Count; //数量
+ BYTE IsBind; //是否绑定
+ WORD UserDataLen;
+ char UserData[UserDataLen]; //自定义数据
+};
+
+struct tagMCMail
+{
+ char GUID[36]; //邮件GUID
+ BYTE Type; //邮件类型,暂时默认0
+ char CreateTime[30]; //创建时间
+ BYTE LimitDays; //有效天数
+ BYTE TitleLen;
+ char Title[TitleLen]; //标题
+ WORD TextLen;
+ char Text[TextLen]; //内容
+ BYTE MailState; //邮件状态: 0-未知;1-未读;2-已读;3-已领;
+ BYTE Count; //物品数
+ tagMCMailItem Items[Count]; //物品信息
+};
+
+struct tagMCMailList
+{
+ tagHead Head;
+ BYTE IsServerMail; //是否全服邮件,如公告、维护、更新、补偿等重要邮件
+ WORD Count;
+ tagMCMail MailList[Count]; //邮件列表
+};
diff --git a/ServerPack/MapServerPack/HA3_Function/MailStateChange b/ServerPack/MapServerPack/HA3_Function/MailStateChange
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ServerPack/MapServerPack/HA3_Function/MailStateChange
diff --git a/ServerPack/MapServerPack/HA3_Function/MailStateChange.des b/ServerPack/MapServerPack/HA3_Function/MailStateChange.des
new file mode 100644
index 0000000..ee95330
--- /dev/null
+++ b/ServerPack/MapServerPack/HA3_Function/MailStateChange.des
@@ -0,0 +1 @@
+A3 63 邮件状态变更 #tagMCMailStateChange
diff --git a/ServerPack/MapServerPack/HA3_Function/MailStateChange.h b/ServerPack/MapServerPack/HA3_Function/MailStateChange.h
new file mode 100644
index 0000000..8a9a6f1
--- /dev/null
+++ b/ServerPack/MapServerPack/HA3_Function/MailStateChange.h
@@ -0,0 +1,14 @@
+// A3 63 邮件状态变更 #tagMCMailStateChange
+
+struct tagMCMailState
+{
+ char GUID[36]; //邮件GUID
+ BYTE MailState; //邮件状态: 0-未知;1-未读;2-已读;3-已领;4-已删
+};
+
+struct tagMCMailStateChange
+{
+ tagHead Head;
+ WORD Count;
+ tagMCMailState MailList[Count]; //邮件列表
+};
--
Gitblit v1.8.0