mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
GMPanel
GMPanel
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using TEngine;
|
||||
|
||||
namespace GameLogic
|
||||
{
|
||||
public class GmCmdHandle
|
||||
{
|
||||
public void Init()
|
||||
{
|
||||
RegGmCmd("gc", Gc);
|
||||
}
|
||||
|
||||
public void RegGmCmd(string cmd, HandleGM func)
|
||||
{
|
||||
ClientGm.Instance.RegGmCmd(cmd, func);
|
||||
}
|
||||
|
||||
public void ShowText(string format, params object[] args)
|
||||
{
|
||||
Log.Debug(format, args);
|
||||
string retStr = string.Format(format, args);
|
||||
GameModule.UI.ShowUIAsync<GMPanel>(retStr);
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
/// GM实际处理代码
|
||||
//////////////////////////////
|
||||
|
||||
private void Gc(List<string> paras)
|
||||
{
|
||||
GameModule.Resource.ForceUnloadUnusedAssets(true);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user