convert skill combo'
This commit is contained in:
@@ -6,8 +6,10 @@ using BrewMonster.UI;
|
||||
using CSNetwork;
|
||||
using CSNetwork.GPDataType;
|
||||
using CSNetwork.Protocols.RPCData;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Unity.Cinemachine;
|
||||
using UnityEngine;
|
||||
@@ -300,7 +302,6 @@ public partial class CECGameRun
|
||||
dwRealLen = 0;
|
||||
}
|
||||
byte[] pData = pDataBuf;
|
||||
int dataOffset = offset;
|
||||
|
||||
if (dwVer >= 3)
|
||||
{
|
||||
@@ -343,7 +344,7 @@ public partial class CECGameRun
|
||||
}
|
||||
}
|
||||
//TODO: flow in update fix later
|
||||
Task.Run(() =>
|
||||
/* Task.Run(() =>
|
||||
{
|
||||
GameSession.Context.Post(_ =>
|
||||
{
|
||||
@@ -353,22 +354,21 @@ public partial class CECGameRun
|
||||
}
|
||||
m_pUIManager.GetCDlgQuickBar().UpdateShortcuts();
|
||||
}, null);
|
||||
});
|
||||
|
||||
});*/
|
||||
// TODO: Uncomment when UI manager is available
|
||||
// Load UI configs / 加载UI配置
|
||||
|
||||
CECGameUIMan pGameUI = m_pUIManager.GetInGameUIMan();
|
||||
/* if (pGameUI != null)
|
||||
{
|
||||
int iSize = dr.ReadInt();
|
||||
byte[] uiConfigData = dr.ReadData(iSize);
|
||||
if (!pGameUI.SetUserLayout(uiConfigData, iSize))
|
||||
{
|
||||
BMLogger.LogError("CECGameRun::LoadConfigsFromServer, Failed to set user layout");
|
||||
return false;
|
||||
}
|
||||
}*/
|
||||
if (pGameUI != null)
|
||||
{
|
||||
int iSize = dr.ReadInt();
|
||||
byte[] uiConfigData = dr.ReadData(iSize);
|
||||
/*if (!pGameUI.SetUserLayout(uiConfigData, iSize))
|
||||
{
|
||||
BMLogger.LogError("CECGameRun::LoadConfigsFromServer, Failed to set user layout");
|
||||
return false;
|
||||
}*/
|
||||
}
|
||||
|
||||
// Load user settings / 加载用户设置
|
||||
if (dwVer >= 2)
|
||||
@@ -376,11 +376,11 @@ public partial class CECGameRun
|
||||
// TODO: Uncomment when game configs are available
|
||||
int iSize = dr.ReadInt();
|
||||
byte[] settingsData = dr.ReadData(iSize);
|
||||
/* if (!EC_Game.GetConfigs().LoadUserConfigData(settingsData, iSize))
|
||||
{
|
||||
BMLogger.LogError("CECGameRun::LoadConfigsFromServer, Failed to load user config data");
|
||||
return false;
|
||||
}*/
|
||||
if (!EC_Game.GetConfigs().LoadUserConfigData(settingsData, iSize))
|
||||
{
|
||||
BMLogger.LogError("CECGameRun::LoadConfigsFromServer, Failed to load user config data");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (System.Exception e)
|
||||
|
||||
Reference in New Issue
Block a user