mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] TEngineServer
[+] TEngineServer
This commit is contained in:
32
DotNet/App/Program.cs
Normal file
32
DotNet/App/Program.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using TEngine;
|
||||
using TEngine.Core;
|
||||
using TEngine.Logic;
|
||||
|
||||
try
|
||||
{
|
||||
App.Init();
|
||||
|
||||
AssemblySystem.Init();
|
||||
|
||||
ConfigTableSystem.Bind();
|
||||
|
||||
App.Start().Coroutine();
|
||||
|
||||
Entry.Start().Coroutine();
|
||||
|
||||
while(true)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
ThreadSynchronizationContext.Main.Update();
|
||||
SingletonSystem.Update();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error(e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user