Mark old event system as deprecated
This commit is contained in:
parent
b81562ea58
commit
ca0e6e089d
17 changed files with 21 additions and 1 deletions
|
@ -18,6 +18,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// Patch of RobocraftX.StateSync.DeterministicStepCompositionRoot.ComposeEnginesGroups(...)
|
/// Patch of RobocraftX.StateSync.DeterministicStepCompositionRoot.ComposeEnginesGroups(...)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
//[HarmonyPatch(typeof(DeterministicStepCompositionRoot), "DeterministicCompose")]
|
//[HarmonyPatch(typeof(DeterministicStepCompositionRoot), "DeterministicCompose")]
|
||||||
|
[Obsolete]
|
||||||
[HarmonyPatch]
|
[HarmonyPatch]
|
||||||
class GameHostTransitionDeterministicGroupEnginePatch
|
class GameHostTransitionDeterministicGroupEnginePatch
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@ using Svelto.ECS;
|
||||||
|
|
||||||
namespace GamecraftModdingAPI.Events
|
namespace GamecraftModdingAPI.Events
|
||||||
{
|
{
|
||||||
|
[Obsolete]
|
||||||
public class EmitterBuilder
|
public class EmitterBuilder
|
||||||
{
|
{
|
||||||
private string name;
|
private string name;
|
||||||
|
|
|
@ -11,6 +11,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convenient factories for mod event engines
|
/// Convenient factories for mod event engines
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
public static class EventEngineFactory
|
public static class EventEngineFactory
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// Keeps track of event handlers and emitters.
|
/// Keeps track of event handlers and emitters.
|
||||||
/// This is used to add, remove and get API event handlers and emitters.
|
/// This is used to add, remove and get API event handlers and emitters.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
public static class EventManager
|
public static class EventManager
|
||||||
{
|
{
|
||||||
private static Dictionary<string, IEventEmitterEngine> _eventEmitters = new Dictionary<string, IEventEmitterEngine>();
|
private static Dictionary<string, IEventEmitterEngine> _eventEmitters = new Dictionary<string, IEventEmitterEngine>();
|
||||||
|
|
|
@ -17,6 +17,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
|
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
[HarmonyPatch]
|
[HarmonyPatch]
|
||||||
class GameActivatedComposePatch
|
class GameActivatedComposePatch
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Patch of RobocraftX.FullGameCompositionRoot.ReloadGame()
|
/// Patch of RobocraftX.FullGameCompositionRoot.ReloadGame()
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
[HarmonyPatch(typeof(FullGameCompositionRoot), "ReloadGame")]
|
[HarmonyPatch(typeof(FullGameCompositionRoot), "ReloadGame")]
|
||||||
class GameReloadedPatch
|
class GameReloadedPatch
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,6 +12,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event emitter engine for switching to to build mode.
|
/// Event emitter engine for switching to to build mode.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
public class GameStateBuildEmitterEngine : IEventEmitterEngine, IUnorderedInitializeOnTimeStoppedModeEntered
|
public class GameStateBuildEmitterEngine : IEventEmitterEngine, IUnorderedInitializeOnTimeStoppedModeEntered
|
||||||
{
|
{
|
||||||
public string Name { get; } = "GamecraftModdingAPIGameStateBuildEventEmitter" ;
|
public string Name { get; } = "GamecraftModdingAPIGameStateBuildEventEmitter" ;
|
||||||
|
|
|
@ -12,6 +12,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event emitter engine for switching to simulation mode.
|
/// Event emitter engine for switching to simulation mode.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
public class GameStateSimulationEmitterEngine : IEventEmitterEngine, IUnorderedInitializeOnTimeRunningModeEntered
|
public class GameStateSimulationEmitterEngine : IEventEmitterEngine, IUnorderedInitializeOnTimeRunningModeEntered
|
||||||
{
|
{
|
||||||
public string Name { get; } = "GamecraftModdingAPIGameStateSimulationEventEmitter" ;
|
public string Name { get; } = "GamecraftModdingAPIGameStateSimulationEventEmitter" ;
|
||||||
|
|
|
@ -18,6 +18,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
|
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
|
||||||
/// (scheduled for execution during RobocraftX.FullGameCompositionRoot.SwitchToGame())
|
/// (scheduled for execution during RobocraftX.FullGameCompositionRoot.SwitchToGame())
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
[HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToGame")]
|
[HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToGame")]
|
||||||
class GameSwitchedToPatch
|
class GameSwitchedToPatch
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@ using Svelto.ECS;
|
||||||
|
|
||||||
namespace GamecraftModdingAPI.Events
|
namespace GamecraftModdingAPI.Events
|
||||||
{
|
{
|
||||||
|
[Obsolete]
|
||||||
public class HandlerBuilder
|
public class HandlerBuilder
|
||||||
{
|
{
|
||||||
private string name;
|
private string name;
|
||||||
|
|
|
@ -13,6 +13,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Engine interface to create a ModEventEntityStruct in entitiesDB when a specific event occurs.
|
/// Engine interface to create a ModEventEntityStruct in entitiesDB when a specific event occurs.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
public interface IEventEmitterEngine : IFactoryEngine
|
public interface IEventEmitterEngine : IFactoryEngine
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines.
|
/// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
public interface IEventHandlerEngine : IReactionaryEngine<ModEventEntityStruct>
|
public interface IEventHandlerEngine : IReactionaryEngine<ModEventEntityStruct>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateMenu()
|
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateMenu()
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
[HarmonyPatch(typeof(FullGameCompositionRoot), "ActivateMenu")]
|
[HarmonyPatch(typeof(FullGameCompositionRoot), "ActivateMenu")]
|
||||||
class MenuActivatedPatch
|
class MenuActivatedPatch
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,6 +15,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Patch of RobocraftX.FullGameCompositionRoot.SwitchToMenu()
|
/// Patch of RobocraftX.FullGameCompositionRoot.SwitchToMenu()
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
[HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToMenu")]
|
[HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToMenu")]
|
||||||
class MenuSwitchedToPatch
|
class MenuSwitchedToPatch
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,6 +12,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A simple implementation of IEventEmitterEngine sufficient for most uses
|
/// A simple implementation of IEventEmitterEngine sufficient for most uses
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
public class SimpleEventEmitterEngine : IEventEmitterEngine
|
public class SimpleEventEmitterEngine : IEventEmitterEngine
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
|
@ -13,6 +13,7 @@ namespace GamecraftModdingAPI.Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A simple implementation of IEventHandlerEngine sufficient for most uses
|
/// A simple implementation of IEventHandlerEngine sufficient for most uses
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
public class SimpleEventHandlerEngine : IEventHandlerEngine
|
public class SimpleEventHandlerEngine : IEventHandlerEngine
|
||||||
{
|
{
|
||||||
public int type { get; set; }
|
public int type { get; set; }
|
||||||
|
|
|
@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Utility
|
||||||
/// Tracks the API version the current game was built for.
|
/// Tracks the API version the current game was built for.
|
||||||
/// For compatibility reasons, this must be enabled before it will work.
|
/// For compatibility reasons, this must be enabled before it will work.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete]
|
||||||
public static class VersionTracking
|
public static class VersionTracking
|
||||||
{
|
{
|
||||||
private static readonly VersionTrackingEngine versionEngine = new VersionTrackingEngine();
|
private static readonly VersionTrackingEngine versionEngine = new VersionTrackingEngine();
|
||||||
|
@ -58,6 +59,7 @@ namespace GamecraftModdingAPI.Utility
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Obsolete]
|
||||||
internal class VersionTrackingEngine : IEventEmitterEngine
|
internal class VersionTrackingEngine : IEventEmitterEngine
|
||||||
{
|
{
|
||||||
public string Name { get; } = "GamecraftModdingAPIVersionTrackingGameEngine";
|
public string Name { get; } = "GamecraftModdingAPIVersionTrackingGameEngine";
|
||||||
|
@ -94,11 +96,13 @@ namespace GamecraftModdingAPI.Utility
|
||||||
public void Emit() { }
|
public void Emit() { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Obsolete]
|
||||||
public struct ModVersionStruct : IEntityComponent
|
public struct ModVersionStruct : IEntityComponent
|
||||||
{
|
{
|
||||||
public uint version;
|
public uint version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Obsolete]
|
||||||
public class ModVersionDescriptor: SerializableEntityDescriptor<ModVersionDescriptor._ModVersionDescriptor>
|
public class ModVersionDescriptor: SerializableEntityDescriptor<ModVersionDescriptor._ModVersionDescriptor>
|
||||||
{
|
{
|
||||||
[HashName("GamecraftModdingAPIVersionV0")]
|
[HashName("GamecraftModdingAPIVersionV0")]
|
||||||
|
|
Loading…
Reference in a new issue