/// <summary> /// Event invoker for the <see cref="ActorAdded"/> event. /// </summary> /// <param name="actor">Actor.</param> protected virtual void OnActorAdded(IActor actor) { var args = new ActorEventArgs(actor); ActorAdded?.Invoke(this, args); }
public void AddActor(Actor actor) { actors.Add(actor); ActorAdded?.Invoke(actor); }