示例#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();
        }
示例#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();
        }