public void InitEngine()
 {
     engine = new Engine0(Handle);
     thread = Engine.EntityEngine.GetRunLoopThread(engine, true);
     if (thread == null)
         throw new Exception("Engine not ready and did not return loop");
 }
 public void InitEngine()
 {
     engine = new Engine0(Handle);
     thread = Engine.EntityEngine.GetRunLoopThread(engine, true);
     if (thread == null)
     {
         throw new Exception("Engine not ready and did not return loop");
     }
 }