diff --git a/GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs b/GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs
index d6e58dc..9f16955 100644
--- a/GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs
+++ b/GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs
@@ -18,7 +18,8 @@ namespace GamecraftModdingAPI.Events
/// Patch of RobocraftX.StateSync.DeterministicStepCompositionRoot.ComposeEnginesGroups(...)
///
//[HarmonyPatch(typeof(DeterministicStepCompositionRoot), "DeterministicCompose")]
- [HarmonyPatch]
+ [Obsolete]
+ [HarmonyPatch]
class GameHostTransitionDeterministicGroupEnginePatch
{
diff --git a/GamecraftModdingAPI/Events/EmitterBuilder.cs b/GamecraftModdingAPI/Events/EmitterBuilder.cs
index 48a6cba..c6a6879 100644
--- a/GamecraftModdingAPI/Events/EmitterBuilder.cs
+++ b/GamecraftModdingAPI/Events/EmitterBuilder.cs
@@ -4,6 +4,7 @@ using Svelto.ECS;
namespace GamecraftModdingAPI.Events
{
+ [Obsolete]
public class EmitterBuilder
{
private string name;
diff --git a/GamecraftModdingAPI/Events/EventEngineFactory.cs b/GamecraftModdingAPI/Events/EventEngineFactory.cs
index f79dfca..7981303 100644
--- a/GamecraftModdingAPI/Events/EventEngineFactory.cs
+++ b/GamecraftModdingAPI/Events/EventEngineFactory.cs
@@ -11,6 +11,7 @@ namespace GamecraftModdingAPI.Events
///
/// Convenient factories for mod event engines
///
+ [Obsolete]
public static class EventEngineFactory
{
///
diff --git a/GamecraftModdingAPI/Events/EventManager.cs b/GamecraftModdingAPI/Events/EventManager.cs
index efbf377..a1c757e 100644
--- a/GamecraftModdingAPI/Events/EventManager.cs
+++ b/GamecraftModdingAPI/Events/EventManager.cs
@@ -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.
///
+ [Obsolete]
public static class EventManager
{
private static Dictionary _eventEmitters = new Dictionary();
diff --git a/GamecraftModdingAPI/Events/GameActivatedComposePatch.cs b/GamecraftModdingAPI/Events/GameActivatedComposePatch.cs
index 4481f4b..4142fb3 100644
--- a/GamecraftModdingAPI/Events/GameActivatedComposePatch.cs
+++ b/GamecraftModdingAPI/Events/GameActivatedComposePatch.cs
@@ -17,6 +17,7 @@ namespace GamecraftModdingAPI.Events
///
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
///
+ [Obsolete]
[HarmonyPatch]
class GameActivatedComposePatch
{
diff --git a/GamecraftModdingAPI/Events/GameReloadedPatch.cs b/GamecraftModdingAPI/Events/GameReloadedPatch.cs
index 40f46e1..7228084 100644
--- a/GamecraftModdingAPI/Events/GameReloadedPatch.cs
+++ b/GamecraftModdingAPI/Events/GameReloadedPatch.cs
@@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Events
///
/// Patch of RobocraftX.FullGameCompositionRoot.ReloadGame()
///
+ [Obsolete]
[HarmonyPatch(typeof(FullGameCompositionRoot), "ReloadGame")]
class GameReloadedPatch
{
diff --git a/GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs b/GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs
index a12433a..725f544 100644
--- a/GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs
+++ b/GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs
@@ -12,6 +12,7 @@ namespace GamecraftModdingAPI.Events
///
/// Event emitter engine for switching to to build mode.
///
+ [Obsolete]
public class GameStateBuildEmitterEngine : IEventEmitterEngine, IUnorderedInitializeOnTimeStoppedModeEntered
{
public string Name { get; } = "GamecraftModdingAPIGameStateBuildEventEmitter" ;
diff --git a/GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs b/GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs
index 5689db9..6e6e2ce 100644
--- a/GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs
+++ b/GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs
@@ -12,6 +12,7 @@ namespace GamecraftModdingAPI.Events
///
/// Event emitter engine for switching to simulation mode.
///
+ [Obsolete]
public class GameStateSimulationEmitterEngine : IEventEmitterEngine, IUnorderedInitializeOnTimeRunningModeEntered
{
public string Name { get; } = "GamecraftModdingAPIGameStateSimulationEventEmitter" ;
diff --git a/GamecraftModdingAPI/Events/GameSwitchedToPatch.cs b/GamecraftModdingAPI/Events/GameSwitchedToPatch.cs
index 30bb0d5..dbd63c0 100644
--- a/GamecraftModdingAPI/Events/GameSwitchedToPatch.cs
+++ b/GamecraftModdingAPI/Events/GameSwitchedToPatch.cs
@@ -18,6 +18,7 @@ namespace GamecraftModdingAPI.Events
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()
/// (scheduled for execution during RobocraftX.FullGameCompositionRoot.SwitchToGame())
///
+ [Obsolete]
[HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToGame")]
class GameSwitchedToPatch
{
diff --git a/GamecraftModdingAPI/Events/HandlerBuilder.cs b/GamecraftModdingAPI/Events/HandlerBuilder.cs
index d5d9879..10f3290 100644
--- a/GamecraftModdingAPI/Events/HandlerBuilder.cs
+++ b/GamecraftModdingAPI/Events/HandlerBuilder.cs
@@ -4,6 +4,7 @@ using Svelto.ECS;
namespace GamecraftModdingAPI.Events
{
+ [Obsolete]
public class HandlerBuilder
{
private string name;
diff --git a/GamecraftModdingAPI/Events/IEventEmitterEngine.cs b/GamecraftModdingAPI/Events/IEventEmitterEngine.cs
index f6fefc5..8917cef 100644
--- a/GamecraftModdingAPI/Events/IEventEmitterEngine.cs
+++ b/GamecraftModdingAPI/Events/IEventEmitterEngine.cs
@@ -13,6 +13,7 @@ namespace GamecraftModdingAPI.Events
///
/// Engine interface to create a ModEventEntityStruct in entitiesDB when a specific event occurs.
///
+ [Obsolete]
public interface IEventEmitterEngine : IFactoryEngine
{
///
diff --git a/GamecraftModdingAPI/Events/IEventHandlerEngine.cs b/GamecraftModdingAPI/Events/IEventHandlerEngine.cs
index 34a14af..228adb8 100644
--- a/GamecraftModdingAPI/Events/IEventHandlerEngine.cs
+++ b/GamecraftModdingAPI/Events/IEventHandlerEngine.cs
@@ -14,6 +14,7 @@ namespace GamecraftModdingAPI.Events
///
/// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines.
///
+ [Obsolete]
public interface IEventHandlerEngine : IReactionaryEngine
{
}
diff --git a/GamecraftModdingAPI/Events/MenuActivatedPatch.cs b/GamecraftModdingAPI/Events/MenuActivatedPatch.cs
index 4237faa..382bac4 100644
--- a/GamecraftModdingAPI/Events/MenuActivatedPatch.cs
+++ b/GamecraftModdingAPI/Events/MenuActivatedPatch.cs
@@ -15,6 +15,7 @@ namespace GamecraftModdingAPI.Events
///
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateMenu()
///
+ [Obsolete]
[HarmonyPatch(typeof(FullGameCompositionRoot), "ActivateMenu")]
class MenuActivatedPatch
{
diff --git a/GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs b/GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs
index 52a00b2..30b84da 100644
--- a/GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs
+++ b/GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs
@@ -15,6 +15,7 @@ namespace GamecraftModdingAPI.Events
///
/// Patch of RobocraftX.FullGameCompositionRoot.SwitchToMenu()
///
+ [Obsolete]
[HarmonyPatch(typeof(FullGameCompositionRoot), "SwitchToMenu")]
class MenuSwitchedToPatch
{
diff --git a/GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs b/GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs
index 0e51823..0ea8170 100644
--- a/GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs
+++ b/GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs
@@ -12,6 +12,7 @@ namespace GamecraftModdingAPI.Events
///
/// A simple implementation of IEventEmitterEngine sufficient for most uses
///
+ [Obsolete]
public class SimpleEventEmitterEngine : IEventEmitterEngine
{
public string Name { get; set; }
diff --git a/GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs b/GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs
index 18314d9..ebce21d 100644
--- a/GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs
+++ b/GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs
@@ -13,6 +13,7 @@ namespace GamecraftModdingAPI.Events
///
/// A simple implementation of IEventHandlerEngine sufficient for most uses
///
+ [Obsolete]
public class SimpleEventHandlerEngine : IEventHandlerEngine
{
public int type { get; set; }
diff --git a/GamecraftModdingAPI/Utility/VersionTracking.cs b/GamecraftModdingAPI/Utility/VersionTracking.cs
index 780ac38..32b86dc 100644
--- a/GamecraftModdingAPI/Utility/VersionTracking.cs
+++ b/GamecraftModdingAPI/Utility/VersionTracking.cs
@@ -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.
///
+ [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
{
[HashName("GamecraftModdingAPIVersionV0")]