public int AddActorToThread(string threadName, IActor actor) { IThread thread = _data.FindThreadByName(threadName); int actorId = _data.AllocateActor(thread); thread.AddActor(actorId, actor); return(actorId); }
public int AddActor(IActor actor) { IThread thread = _data.GetRandomThread(); int actorId = _data.AllocateActor(thread); thread.AddActor(actorId, actor); return(actorId); }