Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }