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