Exemplo n.º 1
0
 public void Add(string name, BSActor actor)
 {
     lock (m_actors)
     {
         if (!m_actors.ContainsKey(name))
         {
             m_actors[name] = actor;
         }
     }
 }
Exemplo n.º 2
0
 public void Add(string name, BSActor actor)
 {
     lock (m_actors)
     {
         if (!m_actors.ContainsKey(name))
         {
             m_actors[name] = actor;
         }
     }
 }
Exemplo n.º 3
0
        public bool RemoveAndRelease(string name)
        {
            bool ret = false;

            lock (m_actors)
            {
                if (m_actors.ContainsKey(name))
                {
                    BSActor beingRemoved = m_actors[name];
                    m_actors.Remove(name);
                    beingRemoved.Dispose();
                    ret = true;
                }
            }
            return(ret);
        }
Exemplo n.º 4
0
 public bool TryGetActor(string actorName, out BSActor theActor)
 {
     return(m_actors.TryGetValue(actorName, out theActor));
 }
Exemplo n.º 5
0
 public bool TryGetActor(string actorName, out BSActor theActor)
 {
     return m_actors.TryGetValue(actorName, out theActor);
 }