mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
* ModuleLoader: Privatized some too-public fields
* Scene: Changed name from MakeAvatarPhysical to MakeRootAgent and added ForEachClient * SceneManager: Added ForEachScene * Worked some on appearances.
This commit is contained in:
@@ -1134,7 +1134,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
if (m_scenePresences.ContainsKey(agentID))
|
||||
{
|
||||
m_scenePresences[agentID].MakeAvatarPhysical(position, isFlying);
|
||||
m_scenePresences[agentID].MakeRootAgent(position, isFlying);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1570,5 +1570,13 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
avatar = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
internal void ForEachClient( Action<IClientAPI> action )
|
||||
{
|
||||
foreach (ScenePresence presence in m_scenePresences.Values )
|
||||
{
|
||||
action(presence.ControllingClient);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user