public void Initialize(IManager manager) { InitializeSettings(); PrefabInitializer = new PrefabInitializer(); PrefabInitializer.HookUpEvent(); try { RuntimePatcher.AutoPatch(); } catch (Exception e) { Log.Error("Failed to initialize mix-ins. Mods will still be loaded, but may not function correctly."); Log.Exception(e); } try { RuntimePatcher.RunTranspilers(); } catch (Exception e) { Log.Error("Failed to initialize one or more transpilers. Mods will still be loaded, but may not function correctly."); Log.Exception(e); } SceneManager.sceneLoaded += InitializeTerminal; }
public void Initialize(IManager manager) { DontDestroyOnLoad(gameObject); Logger = LogManager.GetForCurrentAssembly(); Instance = this; Manager = manager; Config = new Config(); RegisterExportedTypes(); CreateSettingsMenu(); try { RuntimePatcher.AutoPatch(); RuntimePatcher.RunTranspilers(); } catch (Exception e) { Logger.Error("Failed to initialize harmony. Mods will still be loaded, but may not function correctly."); Logger.Exception(e); } }
public void Initialize(IManager manager) { Instance = this; Manager = manager; Logger = LogManager.GetForCurrentAssembly(); Config = gameObject.AddComponent <ConfigurationLogic>(); RuntimePatcher.AutoPatch(); }
public void Initialize(IManager manager) { DontDestroyOnLoad(this); Instance = this; Manager = manager; Logger = LogManager.GetForCurrentAssembly(); RuntimePatcher.AutoPatch(); //Initialized.Subscribe(OnMainMenuInitialized); CreateSettingsMenu(); }
public void Initialize(IManager manager) { DontDestroyOnLoad(this); Instance = this; Manager = manager; Logger = LogManager.GetForCurrentAssembly(); StartParameters = ApplicationArguments.Parse(); RuntimePatcher.AutoPatch(); Initialized.Subscribe(OnMainMenuInitialized); }
public void Initialize(IManager manager) { DontDestroyOnLoad(this); Instance = this; Manager = manager; Logger = LogManager.GetForCurrentAssembly(); Config = gameObject.AddComponent <ConfigurationLogic>(); RuntimePatcher.AutoPatch(); CreateSettingsMenu(); }
public static void Start() { CultureInfo english = new CultureInfo("en-US"); Thread.CurrentThread.CurrentCulture = english; Thread.CurrentThread.CurrentUICulture = english; CultureInfo.CurrentCulture = english; CultureInfo.CurrentUICulture = english; Styles.ApplyAll(); RuntimePatcher.AutoPatch(); new Eto.Forms.Application(Platform.Detect).Run(new MainWindow()); }
public void Start() { try { RuntimePatcher.AutoPatch(); Plugin.Init(); Events.Managers.GameManagerLoaded.Subscribe(OnGameManagerLoaded); EventSubscriber.SubscribeAll(); } catch (Exception e) { Plugin.Log.Exception(e); } }
public void Initialize(IManager manager) { DontDestroyOnLoad(this); Instance = this; Manager = manager; Logger = LogManager.GetForCurrentAssembly(); Logger.Info("NoEditorNumberLimits loaded"); Logger.Info(":atprtsd:"); Logger.Info("ps: i totally did this with no help"); Logger.Info("pps: i can confirm ;)"); Logger.Info("\t\t- Plasmawario, 2020"); RuntimePatcher.AutoPatch(); }
public void Initialize(IManager manager) { Instance = this; Manager = manager; Data = new FileSystem(); Logger = LogManager.GetForCurrentAssembly(); Loader = new TextureLoader(Data); Modifier = new ResourceModificator(Loader); RuntimePatcher.AutoPatch(); Events.Level.PostLoad.Subscribe(LevelPostLoad); CreateMenus(); }
public void Initialize(IManager manager) { DontDestroyOnLoad(this); Instance = this; Manager = manager; Flags.SubscribeEvents(); Logger = LogManager.GetForCurrentAssembly(); Config = gameObject.AddComponent <ConfigurationLogic>(); Config.OnChanged += OnConfigChanged; OnConfigChanged(Config); CreateSettingsMenu(); RuntimePatcher.AutoPatch(); }
public void Initialize(IManager manager) { Instance = this; Manager = manager; Logger = LogManager.GetForCurrentAssembly(); FileSystem = new FileSystem(); Dumper = new Dumper(FileSystem); Config = gameObject.AddComponent <ConfigurationLogic>(); Config.OnChanged += OnConfigChanged; CreateSettingsMenu(); OnConfigChanged(Config); RuntimePatcher.AutoPatch(); }
public void Initialize(IManager manager) { DontDestroyOnLoad(this); Instance = this; Manager = manager; Logger = LogManager.GetForCurrentAssembly(); Config = gameObject.AddComponent <ConfigurationLogic>(); TrackNodeColors = TrackNodeColors.FromSettings("SplineColors.json"); TrackNodeColors.OnFileReloaded += ReloadTrackNodeColors; RuntimePatcher.AutoPatch(); CreateSettingsMenu(); foreach (var mesh in Resources.FindObjectsOfTypeAll <Mesh>()) { Logger.Error($"Mesh: {mesh.name}"); } }
public void Initialize(IManager manager) { Instance = this; Manager = manager; Application.SetStackTraceLogType(LogType.Log, StackTraceLogType.None); Config = gameObject.AddComponent <ConfigurationLogic>(); Variables = gameObject.AddComponent <VariablesLogic>(); SoundPlayer = gameObject.AddComponent <SoundPlayerLogic>(); LevelEditor = gameObject.AddComponent <LevelEditorLogic>(); Logger = LogManager.GetForCurrentAssembly(); MusicTrack.Info.Register(); MusicChoice.Info.Register(); DirectoryEx.CreateIfDoesNotExist("EditorMusic/"); CreateSettingsMenu(); RuntimePatcher.AutoPatch(); }
public void Initialize(IManager manager) => RuntimePatcher.AutoPatch();