public void Close() { if (actx != IntPtr.Zero) { Cfunctions_api.survive_simple_close(actx); } actx = IntPtr.Zero; }
public void Start() { if (threadStarted) { return; } threadStarted = true; Cfunctions_api.survive_simple_start_thread(actx); }
internal void Init(string[] args, SurviveSimpleLogFn logFunc = null, bool dontStartYet = false) { if (logFunc == null) { logFunc = InfoEvent; } actx = Cfunctions_api.survive_simple_init_with_logger(args.Length, args, logFunc); if (actx == IntPtr.Zero) { throw new Exception("There was a problem initializing the lib!"); } if (!dontStartYet) { Start(); } }
public bool WaitForUpdate() { return(Cfunctions_api.survive_simple_wait_for_update(actx)); }
public bool IsRunning() { return(Cfunctions_api.survive_simple_is_running(actx)); }
public SurviveAPIOObject GetNextUpdated() { return(SurviveAPIOObject.Create(Cfunctions_api.survive_simple_get_next_updated(actx))); }
public SurviveAPIOObject GetNextObject(SurviveAPIOObject obj) { return(SurviveAPIOObject.Create(Cfunctions_api.survive_simple_get_next_object(actx, obj.Ptr()))); }
public SurviveAPIOObject GetFirstObject() { return(SurviveAPIOObject.Create(Cfunctions_api.survive_simple_get_first_object(actx))); }