Beispiel #1
0
 private static void EditTransition(On.GameManager.orig_BeginSceneTransition orig, GameManager self, GameManager.SceneLoadInfo info)
 {
     if (info.SceneName == "Room_Final_Boss_Core")
     {
         info.SceneName = "Room_Final_Boss_Atrium";
     }
     orig(self, info);
 }
 public void ManageTransitions(On.GameManager.orig_BeginSceneTransition orig, GameManager self, GameManager.SceneLoadInfo info)
 {
     // The only thing we need here is to see if the user is making a new game.
     if (info.SceneName == "GG_Entrance_Cutscene")
     {
         Send(MakeEvent("game_level_event", "game_level_event", "new_game"));
     }
     orig(self, info);
 }
Beispiel #3
0
        private void GameManager_BeginSceneTransition(On.GameManager.orig_BeginSceneTransition orig, GameManager self, GameManager.SceneLoadInfo info)
        {
            if (info.SceneName == "GG_Workshop" && BossLevel != -1)
            {
                info.EntryGateName = "door_dreamReturnGGFennel";
            }

            orig(self, info);
        }
        private void GameManager_BeginSceneTransition(On.GameManager.orig_BeginSceneTransition orig, GameManager self, GameManager.SceneLoadInfo info)
        {
            Log("PROP " + info.EntryGateName);
            Log("PROP " + BossLevel);
            if (info.SceneName == "GG_Workshop" && BossLevel != -1)
            {
                info.EntryGateName = "door_dreamReturnGGPropeller";
            }

            orig(self, info);
        }
Beispiel #5
0
        private static void RandomizeTransition(On.GameManager.orig_BeginSceneTransition orig, GameManager self, GameManager.SceneLoadInfo info)
        {
            if (string.IsNullOrEmpty(info.EntryGateName) || string.IsNullOrEmpty(info.SceneName))
            {
                orig(self, info);
                return;
            }

            string s = info.EntryGateName.Substring(0, 3);

            SceneItem scene = RandomScene(s);

            info.SceneName     = scene.Name;
            info.EntryGateName = GetGate(scene, s);

            Logger.Log("gate: " + info.EntryGateName);

            orig(self, info);
        }
 private static void OverrideBeginSceneTransition(On.GameManager.orig_BeginSceneTransition orig, GameManager self, GameManager.SceneLoadInfo info)
 {
     ApplySaveDataChanges(info.SceneName, info.EntryGateName);
     orig(self, info);
 }
 private void GetLoadStart(On.GameManager.orig_BeginSceneTransition orig, GameManager self, GameManager.SceneLoadInfo info)
 {
     lastSceneLoaded    = info.SceneName;
     lastSceneLoadStart = Time.realtimeSinceStartup;
     orig(self, info);
 }