public void ForEachActor(Action<BSActor> act) { lock (m_actors) { foreach (KeyValuePair<string, BSActor> kvp in m_actors) act(kvp.Value); } }