mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
34 lines
809 B
C#
34 lines
809 B
C#
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);
|
|
}
|
|
}
|
|
} |