Example #1
0
        public int AddActorToThread(string threadName, IActor actor)
        {
            IThread thread  = _data.FindThreadByName(threadName);
            int     actorId = _data.AllocateActor(thread);

            thread.AddActor(actorId, actor);
            return(actorId);
        }
Example #2
0
        public int AddActor(IActor actor)
        {
            IThread thread  = _data.GetRandomThread();
            int     actorId = _data.AllocateActor(thread);

            thread.AddActor(actorId, actor);
            return(actorId);
        }