From b903258b22f1208b4b7eb7f4fc3ae0d359144ec7 Mon Sep 17 00:00:00 2001 From: HungDK <> Date: Thu, 21 May 2026 17:35:52 +0700 Subject: [PATCH] Add storage metadata --- .../Scripts/Network/CSNetwork/GPDataType.cs | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/Assets/PerfectWorld/Scripts/Network/CSNetwork/GPDataType.cs b/Assets/PerfectWorld/Scripts/Network/CSNetwork/GPDataType.cs index 1aa9283ae3..440cced94a 100644 --- a/Assets/PerfectWorld/Scripts/Network/CSNetwork/GPDataType.cs +++ b/Assets/PerfectWorld/Scripts/Network/CSNetwork/GPDataType.cs @@ -3279,4 +3279,97 @@ namespace CSNetwork.GPDataType { public int id; }; + + // PW_CPP: EC_GPDataType.h — trash box (warehouse) S2C payloads + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_trashbox_pwd_changed + { + public byte has_passwd; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_trashbox_pwd_state + { + public byte has_passwd; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_trashbox_open + { + public byte is_accountbox; + public ushort slot_size; + public ushort slot_size2; + public ushort slot_size3; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_trashbox_close + { + public byte is_accountbox; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_trashbox_wealth + { + public byte is_accountbox; + public uint money; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_exg_trashbox_item + { + public byte where; + public byte idx1; + public byte idx2; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_move_trashbox_item + { + public byte where; + public byte src; + public byte dest; + public uint amount; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_exg_trashbox_ivtr + { + public byte where; + public byte idx_tra; + public byte idx_inv; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_ivty_item_to_trash + { + public byte where; + public byte src; + public byte dest; + public uint amount; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_trash_item_to_ivtr + { + public byte where; + public byte src; + public byte dest; + public uint amount; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_exg_trash_money + { + public byte is_accountbox; + public int inv_delta; + public int tra_delta; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_trashbox_size + { + public byte where; + public int iNewSize; + } }