Update net Demo

Update net Demo
This commit is contained in:
ALEXTANG
2022-05-23 19:54:37 +08:00
parent d194b86c2d
commit 70d2d3aea5
19 changed files with 1934 additions and 25 deletions

View File

@@ -0,0 +1,21 @@
using TEngineCore.Net;
namespace TEngineCore
{
public class TEngineNetDemo : TEngineCore.TEngine
{
protected override void RegisterAllSystem()
{
base.RegisterAllSystem();
AddLogicSys(UISys.Instance);
AddLogicSys(DataCenterSys.Instance);
}
protected override void StartGame()
{
UISys.Mgr.ShowWindow<TEngineLoginUI>();
GameClient.Instance.Connect("127.0.0.1", 54809,true);
}
}
}