mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Remove comp shutdown method (#3710)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user