From bc7693acebeddd50bd86156a85df91d2ee31325b Mon Sep 17 00:00:00 2001 From: HungDK <> Date: Tue, 4 Nov 2025 14:32:23 +0700 Subject: [PATCH] Add revive data structure of revive --- .../Scripts/Network/CSNetwork/GPDataType.cs | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Assets/PerfectWorld/Scripts/Network/CSNetwork/GPDataType.cs b/Assets/PerfectWorld/Scripts/Network/CSNetwork/GPDataType.cs index 46b334ebe3..265498e663 100644 --- a/Assets/PerfectWorld/Scripts/Network/CSNetwork/GPDataType.cs +++ b/Assets/PerfectWorld/Scripts/Network/CSNetwork/GPDataType.cs @@ -619,6 +619,35 @@ namespace CSNetwork.GPDataType public char speed; //¹¥»÷ËÙ¶È speed * 50 ms }; + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_player_died + { + public int idKiller; + public int idPlayer; + }; + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_host_died + { + public int idKiller; + public A3DVECTOR3 pos; + }; + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_player_revive + { + public int idPlayer; + public short sReviveType; // Revive type + public A3DVECTOR3 pos; + }; + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct cmd_notify_hostpos + { + public A3DVECTOR3 vPos; + public int tag; + public int line; + }; [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct A3DVECTOR3 {