* Some changes that should have gone in the previous commit
[Simian] * Adding MapLocal extension to Simian, adds very basic world map, local teleporting, and a stub for HyperGrid teleports * A few more small additions to ISceneProvider git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2426 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -39,6 +39,8 @@ namespace Simian.Extensions
|
||||
public uint RegionY { get { return 1000; } }
|
||||
public ulong RegionHandle { get { return regionHandle; } }
|
||||
public UUID RegionID { get { return regionID; } }
|
||||
public string RegionName { get { return "Simian"; } }
|
||||
public RegionFlags RegionFlags { get { return RegionFlags.None; } }
|
||||
|
||||
public float WaterHeight { get { return 20f; } }
|
||||
|
||||
@@ -309,6 +311,11 @@ namespace Simian.Extensions
|
||||
return sceneObjects.ContainsKey(id) || sceneAgents.ContainsKey(id);
|
||||
}
|
||||
|
||||
public int ObjectCount()
|
||||
{
|
||||
return sceneObjects.Count;
|
||||
}
|
||||
|
||||
public bool TryGetObject(uint localID, out SimulationObject obj)
|
||||
{
|
||||
return sceneObjects.TryGetValue(localID, out obj);
|
||||
@@ -403,6 +410,11 @@ namespace Simian.Extensions
|
||||
return sceneAgents.TryGetValue(id, out agent);
|
||||
}
|
||||
|
||||
public int AgentCount()
|
||||
{
|
||||
return sceneAgents.Count;
|
||||
}
|
||||
|
||||
public void ForEachAgent(Action<Agent> action)
|
||||
{
|
||||
sceneAgents.ForEach(action);
|
||||
|
||||
Reference in New Issue
Block a user