Example #1
0
 static void Main(string[] args)
 {
     Server.EventSystem.LoadAssembly(typeof(Server).Assembly);
     Server.EventSystem.LoadAssembly(typeof(Sample.Sample).Assembly);
     Server.Awake();
     Server.Start();
     while (true)
     {
         try
         {
             Thread.Sleep(1);
             Server.Update();
             Server.LateUpdate();
         }
         catch (Exception e)
         {
             Logger.WriteException(e);
         }
     }
 }