* Completed conceptual LlsdMethod - everything resides in SimpleApp pending guru approval.

This commit is contained in:
lbsa71
2007-07-03 07:06:08 +00:00
parent 315a49e7fd
commit 73a5ec391a
9 changed files with 87 additions and 24 deletions

View File

@@ -17,13 +17,11 @@ namespace SimpleApp
{
public class MyWorld : Scene
{
private RegionInfo m_regionInfo;
private List<OpenSim.Region.Environment.Scenes.ScenePresence> m_avatars;
public MyWorld(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regionInfo, AuthenticateSessionsBase authen, CommunicationsManager commsMan, AssetCache assetCach, BaseHttpServer httpServer)
: base(clientThreads, regionInfo, authen, commsMan, assetCach, httpServer)
{
m_regionInfo = regionInfo;
m_avatars = new List<Avatar>();
}
@@ -68,12 +66,12 @@ namespace SimpleApp
client.OnCompleteMovementToRegion += delegate()
{
client.MoveAgentIntoRegion(m_regionInfo, pos, LLVector3.Zero );
client.MoveAgentIntoRegion(m_regInfo, pos, LLVector3.Zero );
};
client.OnCompleteMovementToRegion += delegate()
{
client.SendAvatarData(m_regionInfo.RegionHandle, client.FirstName,
client.SendAvatarData(m_regInfo.RegionHandle, client.FirstName,
client.LastName, client.AgentId, 0,
pos, null);
@@ -83,7 +81,7 @@ namespace SimpleApp
};
client.SendRegionHandshake(m_regionInfo);
client.SendRegionHandshake(m_regInfo);
CreateAndAddScenePresence(client);
@@ -94,23 +92,6 @@ namespace SimpleApp
client.SendWearables( AvatarWearable.DefaultWearables );
}
public RegionInfo RegionInfo
{
get { return m_regionInfo; }
}
public object SyncRoot
{
get { return this; }
}
private uint m_nextLocalId = 1;
public uint NextLocalId
{
get { return m_nextLocalId++; }
}
#endregion
}
}