//@El Conserje call it ConserjeCore or I'll scream public EnigmaticThunderPlugin() { LogCore.logger = base.Logger; //Add listeners. BepInEx.Logging.Logger.Listeners.Add(new ErrorListener()); BepInEx.Logging.Logger.Listeners.Add(new ChainLoaderListener()); SingletonHelper.Assign <EnigmaticThunderPlugin>(ref EnigmaticThunderPlugin.instance, this); GatherModules(); var networkCompatibilityHandler = new NetworkCompatibilityHandler(); networkCompatibilityHandler.BuildModList(); RoR2.RoR2Application.isModded = true; ErrorListener.vanillaErrors.addition += VanillaErrors_addition; ErrorListener.modErrors.addition += ModErrors_addition; ChainLoaderListener.OnChainLoaderFinished += OnChainLoaderFinished; SceneManager.activeSceneChanged += SceneManager_activeSceneChanged; }
public void Awake() { Instance = SingletonHelper.Assign(Instance, this); LogSpawnCards = Config.Bind("SpawnCards", "LogToConsole", false, "Log all available spawn cards from \"SpawnCards/CharacterSpawnCards/\""); CustomSpawnCards = Config.Bind("SpawnCards", "CustomSpawnCards", "SpawnCards/CharacterSpawnCards/cscJellyfish; SpawnCards/CharacterSpawnCards/cscRoboBallMini", "Semi-colon seperated (;) entries of Spawn Cards"); if (LogSpawnCards.Value) { List <String> allPaths = new List <string>(); LegacyResourcesAPI.GetAllPaths(allPaths); foreach (var resource in allPaths) { if (resource.StartsWith("SpawnCards/CharacterSpawnCards/")) { Debug.LogError(resource); } } } // FIXME: Get rid of this hack and just use a prefab On.RoR2.NetworkSession.BeginRun += NetworkSession_BeginRun; // This is the real way to integrate // GameModeCatalog.getAdditionalEntries += RegisterVIPRun; }
// Token: 0x060024A2 RID: 9378 RVA: 0x000AB82C File Offset: 0x000A9A2C public void OnEnable() { this.LerpAllUI(LerpUIRect.LerpState.Entering); this.state = MultiplayerMenuController.State.Idle; MultiplayerMenuController.instance = SingletonHelper.Assign <MultiplayerMenuController>(MultiplayerMenuController.instance, this); if (!SteamworksLobbyManager.isInLobby) { SteamworksLobbyManager.CreateLobby(); } SteamworksLobbyManager.onLobbyLeave += this.OnLobbyLeave; }
// Token: 0x060005F6 RID: 1526 RVA: 0x0001893D File Offset: 0x00016B3D private void OnEnable() { ArenaMissionController.instance = SingletonHelper.Assign <ArenaMissionController>(ArenaMissionController.instance, this); Action action = ArenaMissionController.onInstanceChangedGlobal; if (action != null) { action(); } SceneDirector.onPreGeneratePlayerSpawnPointsServer += this.OnPreGeneratePlayerSpawnPointsServer; }
public void OnEnable() { SingletonHelper.Assign <Plugin>(Plugin.instance, this); Log.LogI("Henry instance assigned."); Action awake = Plugin.onEnable; if (awake == null) { return; } awake(); }
// Token: 0x06001035 RID: 4149 RVA: 0x000474E0 File Offset: 0x000456E0 private void OnEnable() { PreGameController.instance = SingletonHelper.Assign <PreGameController>(PreGameController.instance, this); if (NetworkServer.active) { this.RecalculateModifierAvailability(); } NetworkUser.OnNetworkUserUnlockablesUpdated += this.OnNetworkUserUnlockablesUpdatedCallback; NetworkUser.OnPostNetworkUserStart += this.OnPostNetworkUserStartCallback; if (NetworkClient.active) { foreach (NetworkUser networkUser in NetworkUser.readOnlyLocalPlayersList) { networkUser.SendServerUnlockables(); } } }
// Token: 0x0600257D RID: 9597 RVA: 0x000A317E File Offset: 0x000A137E private void OnEnable() { SingletonHelper.Assign <SteamJoinClipboardLobby>(ref SteamJoinClipboardLobby.instance, this); }
// Token: 0x06000FDC RID: 4060 RVA: 0x0004F818 File Offset: 0x0004DA18 private void OnEnable() { GoldshoresMissionController.instance = SingletonHelper.Assign <GoldshoresMissionController>(GoldshoresMissionController.instance, this); }
// Token: 0x06001440 RID: 5184 RVA: 0x00056683 File Offset: 0x00054883 private void OnEnable() { TeamManager.instance = SingletonHelper.Assign <TeamManager>(TeamManager.instance, this); }
// Token: 0x06001219 RID: 4633 RVA: 0x0005939C File Offset: 0x0005759C private void OnEnable() { NetworkSession.instance = SingletonHelper.Assign <NetworkSession>(NetworkSession.instance, this); }
// Token: 0x06002525 RID: 9509 RVA: 0x000A1EBE File Offset: 0x000A00BE private void OnEnable() { ServerBrowserController.instance = SingletonHelper.Assign <ServerBrowserController>(ServerBrowserController.instance, this); }
// Token: 0x060015D7 RID: 5591 RVA: 0x00068B83 File Offset: 0x00066D83 private void OnEnable() { Stage.instance = SingletonHelper.Assign <Stage>(Stage.instance, this); }
protected void OnEnable() { UsersRespawnController.instance = SingletonHelper.Assign <UsersRespawnController>(UsersRespawnController.instance, this); }
// Token: 0x060009ED RID: 2541 RVA: 0x0002B576 File Offset: 0x00029776 private void OnEnable() { DamageNumberManager.instance = SingletonHelper.Assign <DamageNumberManager>(DamageNumberManager.instance, this); }
// Token: 0x06001EDB RID: 7899 RVA: 0x000859B9 File Offset: 0x00083BB9 private void OnEnable() { ProjectileManager.instance = SingletonHelper.Assign <ProjectileManager>(ProjectileManager.instance, this); }
// Token: 0x06000B68 RID: 2920 RVA: 0x0003821C File Offset: 0x0003641C private void Awake() { BazaarController.instance = SingletonHelper.Assign <BazaarController>(BazaarController.instance, this); }
// Token: 0x06000F60 RID: 3936 RVA: 0x0004C022 File Offset: 0x0004A222 private void OnEnable() { GameOverController.instance = SingletonHelper.Assign <GameOverController>(GameOverController.instance, this); }
// Token: 0x0600166F RID: 5743 RVA: 0x0006AD29 File Offset: 0x00068F29 private void OnEnable() { TeleporterInteraction.instance = SingletonHelper.Assign <TeleporterInteraction>(TeleporterInteraction.instance, this); }