implement simple mail on pc

This commit is contained in:
Martin Michelsen
2022-07-29 11:53:04 -07:00
parent 0ebf2ba8ef
commit 4b666a079b
3 changed files with 39 additions and 14 deletions
+7 -3
View File
@@ -1031,14 +1031,18 @@ struct S_Unknown_PC_V3_80 {
// uninitialized data for security reasons before forwarding and things seem to
// work fine.
struct SC_SimpleMail_V3_81 {
template <typename CharT>
struct SC_SimpleMail_81 {
le_uint32_t player_tag;
le_uint32_t from_guild_card_number;
ptext<char, 0x10> from_name;
ptext<CharT, 0x10> from_name;
le_uint32_t to_guild_card_number;
ptext<char, 0x200> text;
ptext<CharT, 0x200> text;
};
struct SC_SimpleMail_PC_81 : SC_SimpleMail_81<char16_t> { };
struct SC_SimpleMail_V3_81 : SC_SimpleMail_81<char> { };
// 82: Invalid command
// 83 (S->C): Lobby menu