Пример #1
0
        /// <summary>
        /// Called during game start on every mod, before the World is ready (GameManager.Instance.World == null)
        /// </summary>
        public override void GameAwake()
        {
            try
            {
                Log.Debug("Api.GameAwake called.");
                Log.Out("Initializing phase 2/3 ...");
                CommandTools.InitScripts();
                PatchTools.ApplyPatches();
                CommandTools.InitScriptsMonitoring();

                CommandTools.InvokeScriptEvents(ScriptEvent.gameAwake, () => new ScriptEventArgs());
            }
            catch (Exception ex)
            {
                CommandTools.HandleEventException(ex);
            }
        }