public void RegisterActor(UntypedActor actor) { actor.SetActorSystem(this); string name = actor.GetType().Name; if (actors.ContainsKey(name)) { //Debug.Log("Actor " + name + " already registered"); actors.Remove(name); } actors.Add(name, actor); }
public void DeliverByDestination(Entity entity) { UntypedActor actor = Find(entity.destination); if (actor.GetType().Name == "DeadLetters") { Debug.Log("Incoming entity has invalid destination: " + entity.destination); } else { actor.Tell(entity); } }
public void RegisterActor(UntypedActor actor) { actor.SetActorSystem(this); string name = actor.GetType().Name; if (actors.ContainsKey(name)) { //Debug.Log("Actor " + name + " already registered"); actors.Remove(name); } actors.Add(name, actor); }