public void Init(object gameInstance) { if (Context != null) { Log.WriteLine("Init already called."); return; } Context = new IvxrPluginContext(); Log = Context.Log; Log.WriteLine($"{nameof(IvxrPlugin)} initialization finished."); Context.StartServer(); }
public void Init(object gameInstance) { if (Context != null) { Log.WriteLine("Init already called."); return; } var config = GetConfiguration(MyFileSystem.UserDataPath) as IvxrPluginConfiguration; Context = new IvxrPluginContext(config.ToPluginConfig()); Log = Context.Log; Log.WriteLine($"{nameof(IvxrPlugin)} initialization finished."); Context.StartServer(); }