示例#1
0
        /// <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);
        }
示例#2
0
 public void AddActor(Actor actor)
 {
     actors.Add(actor);
     ActorAdded?.Invoke(actor);
 }