Amend Me
This commit is contained in:
@@ -4,11 +4,11 @@ namespace Syntriax.Engine.Core;
|
||||
|
||||
public abstract class BaseEntity : IEntity
|
||||
{
|
||||
public Event<IEntity, string> OnIdChanged { get; private set; } = new();
|
||||
public Event<IInitializable> OnInitialized { get; private set; } = new();
|
||||
public Event<IInitializable> OnFinalized { get; private set; } = new();
|
||||
public Event<IHasStateEnable> OnStateEnableAssigned { get; private set; } = new();
|
||||
public Event<IAssignable> OnUnassigned { get; private set; } = new();
|
||||
public Event<IEntity, IEntity.IdChangedArguments> OnIdChanged { get; init; } = new();
|
||||
public Event<IInitializable> OnInitialized { get; init; } = new();
|
||||
public Event<IInitializable> OnFinalized { get; init; } = new();
|
||||
public Event<IHasStateEnable> OnStateEnableAssigned { get; init; } = new();
|
||||
public Event<IAssignable> OnUnassigned { get; init; } = new();
|
||||
|
||||
private IStateEnable _stateEnable = null!;
|
||||
|
||||
@@ -31,7 +31,7 @@ public abstract class BaseEntity : IEntity
|
||||
string previousId = _id;
|
||||
|
||||
_id = value;
|
||||
OnIdChanged?.Invoke(this, previousId);
|
||||
OnIdChanged?.Invoke(this, new(previousId));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user