Browse Source

Mark old event system as deprecated

tags/v1.5.0
NGnius (Graham) 4 years ago
parent
commit
ca0e6e089d
17 changed files with 21 additions and 1 deletions
  1. +2
    -1
      GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs
  2. +1
    -0
      GamecraftModdingAPI/Events/EmitterBuilder.cs
  3. +1
    -0
      GamecraftModdingAPI/Events/EventEngineFactory.cs
  4. +1
    -0
      GamecraftModdingAPI/Events/EventManager.cs
  5. +1
    -0
      GamecraftModdingAPI/Events/GameActivatedComposePatch.cs
  6. +1
    -0
      GamecraftModdingAPI/Events/GameReloadedPatch.cs
  7. +1
    -0
      GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs
  8. +1
    -0
      GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs
  9. +1
    -0
      GamecraftModdingAPI/Events/GameSwitchedToPatch.cs
  10. +1
    -0
      GamecraftModdingAPI/Events/HandlerBuilder.cs
  11. +1
    -0
      GamecraftModdingAPI/Events/IEventEmitterEngine.cs
  12. +1
    -0
      GamecraftModdingAPI/Events/IEventHandlerEngine.cs
  13. +1
    -0
      GamecraftModdingAPI/Events/MenuActivatedPatch.cs
  14. +1
    -0
      GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs
  15. +1
    -0
      GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs
  16. +1
    -0
      GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs
  17. +4
    -0
      GamecraftModdingAPI/Utility/VersionTracking.cs

+ 2
- 1
GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs View File

@@ -18,7 +18,8 @@ namespace GamecraftModdingAPI.Events
/// Patch of RobocraftX.StateSync.DeterministicStepCompositionRoot.ComposeEnginesGroups(...)
/// </summary>
//[HarmonyPatch(typeof(DeterministicStepCompositionRoot), "DeterministicCompose")]
[HarmonyPatch]
[Obsolete]
[HarmonyPatch]
class GameHostTransitionDeterministicGroupEnginePatch
{



+ 1
- 0
GamecraftModdingAPI/Events/EmitterBuilder.cs View File

@@ -4,6 +4,7 @@ using Svelto.ECS;

namespace GamecraftModdingAPI.Events
{
[Obsolete]
public class EmitterBuilder
{
private string name;


+ 1
- 0
GamecraftModdingAPI/Events/EventEngineFactory.cs View File

@@ -11,6 +11,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// Convenient factories for mod event engines
/// </summary>
[Obsolete]
public static class EventEngineFactory
{
/// <summary>


+ 1
- 0
GamecraftModdingAPI/Events/EventManager.cs View File

@@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Events
/// Keeps track of event handlers and emitters.
/// This is used to add, remove and get API event handlers and emitters.
/// </summary>
[Obsolete]
public static class EventManager
{
private static Dictionary<string, IEventEmitterEngine> _eventEmitters = new Dictionary<string, IEventEmitterEngine>();


+ 1
- 0
GamecraftModdingAPI/Events/GameActivatedComposePatch.cs View File

@@ -17,6 +17,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
/// </summary>
[Obsolete]
[HarmonyPatch]
class GameActivatedComposePatch
{


+ 1
- 0
GamecraftModdingAPI/Events/GameReloadedPatch.cs View File

@@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ReloadGame()
/// </summary>
[Obsolete]
[HarmonyPatch(typeof(FullGameCompositionRoot), "ReloadGame")]
class GameReloadedPatch
{


+ 1
- 0
GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs View File

@@ -12,6 +12,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// Event emitter engine for switching to to build mode.
/// </summary>
[Obsolete]
public class GameStateBuildEmitterEngine : IEventEmitterEngine, IUnorderedInitializeOnTimeStoppedModeEntered
{
public string Name { get; } = "GamecraftModdingAPIGameStateBuildEventEmitter" ;


+ 1
- 0
GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs View File

@@ -12,6 +12,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// Event emitter engine for switching to simulation mode.
/// </summary>
[Obsolete]
public class GameStateSimulationEmitterEngine : IEventEmitterEngine, IUnorderedInitializeOnTimeRunningModeEntered
{
public string Name { get; } = "GamecraftModdingAPIGameStateSimulationEventEmitter" ;


+ 1
- 0
GamecraftModdingAPI/Events/GameSwitchedToPatch.cs View File

@@ -18,6 +18,7 @@ namespace GamecraftModdingAPI.Events
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
/// (scheduled for execution during RobocraftX.FullGameCompositionRoot.SwitchToGame())
/// </summary>
[Obsolete]
[HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToGame")]
class GameSwitchedToPatch
{


+ 1
- 0
GamecraftModdingAPI/Events/HandlerBuilder.cs View File

@@ -4,6 +4,7 @@ using Svelto.ECS;

namespace GamecraftModdingAPI.Events
{
[Obsolete]
public class HandlerBuilder
{
private string name;


+ 1
- 0
GamecraftModdingAPI/Events/IEventEmitterEngine.cs View File

@@ -13,6 +13,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// Engine interface to create a ModEventEntityStruct in entitiesDB when a specific event occurs.
/// </summary>
[Obsolete]
public interface IEventEmitterEngine : IFactoryEngine
{
/// <summary>


+ 1
- 0
GamecraftModdingAPI/Events/IEventHandlerEngine.cs View File

@@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines.
/// </summary>
[Obsolete]
public interface IEventHandlerEngine : IReactionaryEngine<ModEventEntityStruct>
{
}


+ 1
- 0
GamecraftModdingAPI/Events/MenuActivatedPatch.cs View File

@@ -15,6 +15,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateMenu()
/// </summary>
[Obsolete]
[HarmonyPatch(typeof(FullGameCompositionRoot), "ActivateMenu")]
class MenuActivatedPatch
{


+ 1
- 0
GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs View File

@@ -15,6 +15,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.SwitchToMenu()
/// </summary>
[Obsolete]
[HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToMenu")]
class MenuSwitchedToPatch
{


+ 1
- 0
GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs View File

@@ -12,6 +12,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// A simple implementation of IEventEmitterEngine sufficient for most uses
/// </summary>
[Obsolete]
public class SimpleEventEmitterEngine : IEventEmitterEngine
{
public string Name { get; set; }


+ 1
- 0
GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs View File

@@ -13,6 +13,7 @@ namespace GamecraftModdingAPI.Events
/// <summary>
/// A simple implementation of IEventHandlerEngine sufficient for most uses
/// </summary>
[Obsolete]
public class SimpleEventHandlerEngine : IEventHandlerEngine
{
public int type { get; set; }


+ 4
- 0
GamecraftModdingAPI/Utility/VersionTracking.cs View File

@@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Utility
/// Tracks the API version the current game was built for.
/// For compatibility reasons, this must be enabled before it will work.
/// </summary>
[Obsolete]
public static class VersionTracking
{
private static readonly VersionTrackingEngine versionEngine = new VersionTrackingEngine();
@@ -58,6 +59,7 @@ namespace GamecraftModdingAPI.Utility

}

[Obsolete]
internal class VersionTrackingEngine : IEventEmitterEngine
{
public string Name { get; } = "GamecraftModdingAPIVersionTrackingGameEngine";
@@ -94,11 +96,13 @@ namespace GamecraftModdingAPI.Utility
public void Emit() { }
}

[Obsolete]
public struct ModVersionStruct : IEntityComponent
{
public uint version;
}

[Obsolete]
public class ModVersionDescriptor: SerializableEntityDescriptor<ModVersionDescriptor._ModVersionDescriptor>
{
[HashName("GamecraftModdingAPIVersionV0")]


Loading…
Cancel
Save