Пример #1
0
        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();
            }
        }
Пример #2
0
 public static extern SurviveSimpleContextPtr survive_simple_init_with_logger(int argc, string[] args,
                                                                              SurviveSimpleLogFn fn);
Пример #3
0
 public SurviveAPI(string[] args, SurviveSimpleLogFn logFunc = null, bool dontStartYet = false)
 {
     Init(args, logFunc, dontStartYet);
 }