Remove comp shutdown method (#3710)

This commit is contained in:
metalgearsloth
2023-01-19 11:57:03 +11:00
committed by GitHub
parent 9a89c3d352
commit 5df840db2d

View File

@@ -126,14 +126,7 @@ namespace Robust.Shared.GameObjects
LifeStage = ComponentLifeStage.Stopping;
entManager.EventBus.RaiseComponentEvent(this, CompShutdownInstance);
Shutdown();
#if DEBUG
if (LifeStage != ComponentLifeStage.Stopped)
{
DebugTools.Assert($"Component {this.GetType().Name} did not call base {nameof(Shutdown)} in derived method.");
}
#endif
LifeStage = ComponentLifeStage.Stopped;
}
/// <summary>
@@ -204,14 +197,6 @@ namespace Robust.Shared.GameObjects
LifeStage = ComponentLifeStage.Running;
}
/// <summary>
/// Shuts down the component. The is called Automatically by OnRemove.
/// </summary>
protected virtual void Shutdown()
{
LifeStage = ComponentLifeStage.Stopped;
}
/// <summary>
/// Called when the component is removed from an entity.
/// Shuts down the component.