mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Remove ComponentDeleted C# event (#4317)
No one's used it for 12 years probably no reason to obs first.
This commit is contained in:
@@ -55,9 +55,6 @@ namespace Robust.Shared.GameObjects
|
||||
/// <inheritdoc />
|
||||
public event Action<RemovedComponentEventArgs>? ComponentRemoved;
|
||||
|
||||
/// <inheritdoc />
|
||||
public event Action<DeletedComponentEventArgs>? ComponentDeleted;
|
||||
|
||||
public void InitializeComponents()
|
||||
{
|
||||
if (Initialized)
|
||||
@@ -606,8 +603,6 @@ namespace Robust.Shared.GameObjects
|
||||
// TODO if terminating the entity, maybe defer this?
|
||||
// _entCompIndex.Remove(uid) gets called later on anyways.
|
||||
_entCompIndex.Remove(entityUid, component);
|
||||
|
||||
ComponentDeleted?.Invoke(new DeletedComponentEventArgs(new ComponentEventArgs(component, entityUid), terminating));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -18,12 +18,6 @@ namespace Robust.Shared.GameObjects
|
||||
/// </summary>
|
||||
event Action<RemovedComponentEventArgs>? ComponentRemoved;
|
||||
|
||||
/// <summary>
|
||||
/// A component was deleted. This is usually deferred until some time after it was removed.
|
||||
/// Usually you will want to subscribe to <see cref="ComponentRemoved"/>.
|
||||
/// </summary>
|
||||
event Action<DeletedComponentEventArgs>? ComponentDeleted;
|
||||
|
||||
/// <summary>
|
||||
/// Calls Initialize() on all registered components of the entity.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user