debug fix time

This commit is contained in:
VDH
2025-09-12 10:24:14 +07:00
parent ab1e92b412
commit 74105e6aa2
4 changed files with 8 additions and 2 deletions
Binary file not shown.
@@ -32,6 +32,7 @@ namespace PerfectWorld.Scripts.Managers
{
case int value when value == EC_MsgDef.MSG_PM_PLAYERINFO:
{
Debug.Log(" EC_MsgDef.MSG_PM_PLAYERINFO");
OnMsgPlayerInfo(Msg);
break;
}
@@ -74,6 +75,7 @@ namespace PerfectWorld.Scripts.Managers
break;
}
case CommandID.SELF_INFO_1:
Debug.Log("SELF_INFO_1");
cmd_self_info_1 info = GPDataTypeHelper.FromBytes<cmd_self_info_1>((byte[])Msg.dwParam1);
HostPlayerInfo1(info);
break;
@@ -98,6 +100,7 @@ namespace PerfectWorld.Scripts.Managers
public bool HostPlayerInfo1(cmd_self_info_1 info)
{
Debug.Log("HostPlayerInfo1");
bool isDoneWorldRender = false;
bool isDoneNPCRender = false;
Action actLoadChar = () =>
@@ -85,7 +85,7 @@ namespace BrewMonster.UI
{
// now we have to enter the world
/* UnityGameSession.SendProtocol(
/*UnityGameSession.SendProtocol(
new enterworld()
{
Roleid = roleInfo.roleid,
@@ -97,11 +97,14 @@ namespace BrewMonster.UI
Timeout = 0
}
);*/
Debug.Log("OnSelectRoleComplete");
UnityGameSession.EnterWorldAsync(roleInfo, OnEnterWorldComplete);
}
private async void OnEnterWorldComplete()
{
Debug.Log("OnEnterWorldDelay");
await Task.Delay(2000);
Logger.Log("Entered world successfully.");
UnityGameSession.RequestInventoryAsync(() => { Logger.Log("Sent Inventory Detail Request"); });
+1 -1
View File
@@ -62,13 +62,13 @@ public class CECHostMove
return;
}
}
m_fMoveTime = 0.0f;
m_CmdTimeCnt.Reset();
iMoveMode |= (int)MoveMode.GP_MOVE_DEAD;
// HoangTODO: vCurPos c# unity khác với vCurPos của bên c++ kia
c2s_CmdPlayerMove(vCurPos, vCurPos, iTime/* MOVECMD_INTERVAL */, fSpeed, iMoveMode, m_wMoveStamp++);
m_vLastSevPos = vCurPos;