TechbloxModdingAPI/GamecraftModdingAPI/Events/GameSwitchedToPatch.cs

30 lines
706 B
C#
Raw Normal View History

2019-12-14 18:52:24 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
2019-12-14 18:52:24 +00:00
using Harmony;
using RobocraftX;
using RobocraftX.CR.MainGame;
using Svelto.ECS;
2019-12-14 18:52:24 +00:00
using GamecraftModdingAPI.Utility;
namespace GamecraftModdingAPI.Events
{
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
/// (scheduled for execution during RobocraftX.FullGameCompositionRoot.SwitchToGame())
2019-12-14 18:52:24 +00:00
/// </summary>
[HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToGame")]
2019-12-14 18:52:24 +00:00
class GameSwitchedToPatch
{
public static void Prefix()
2019-12-14 18:52:24 +00:00
{
GameActivatedComposePatch.IsGameSwitching = true;
2019-12-14 18:52:24 +00:00
}
}
}