コード例 #1
0
ファイル: ActorSystem.cs プロジェクト: Yuotta/gamemachine
        public void RegisterActor(UntypedActor actor)
        {
            actor.SetActorSystem(this);
            string name = actor.GetType().Name;

            actors.Add(name, actor);
        }
コード例 #2
0
ファイル: ActorSystem.cs プロジェクト: Yuotta/gamemachine
        public void DeliverByDestination(Entity entity)
        {
            UntypedActor actor = Find(entity.destination);

            if (actor.GetType().Name == "DeadLetters")
            {
                Logger.Debug("Incoming entity has invalid destination: " + entity.destination);
            }
            else
            {
                actor.Tell(entity);
            }
        }