Add logic update time and show time in minimap

This commit is contained in:
CuongNV
2026-05-13 10:15:29 +07:00
parent 6cebb9079d
commit 258679dd7c
7 changed files with 194 additions and 27 deletions
+7 -6
View File
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using BrewMonster;
using BrewMonster.Network;
using CSNetwork;
using CSNetwork.GPDataType;
@@ -7,7 +8,7 @@ using CSNetwork.GPDataType;
partial class CECGameRun : IMsgHandler
{
private readonly Dictionary<int, int> m_CommonDataTab = new Dictionary<int, int>();
public int GetCommonData(int key)
{
// Lookup a common data value by key
@@ -17,9 +18,9 @@ partial class CECGameRun : IMsgHandler
else
return 0;
}
private CECCounter l_QueryServerTime = new CECCounter(); // ѯǰʱ
public int HandlerId => -1;
public bool ProcessMessage(ECMSG Msg)
{
@@ -30,9 +31,9 @@ partial class CECGameRun : IMsgHandler
EC_Game.SetServerTime((int)Msg.dwParam1, (int)Msg.dwParam2);
l_QueryServerTime.Reset();
break;
}
return true;
}
}
}