aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Examples/SimpleApp/MyWorld.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Examples/SimpleApp/MyWorld.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Examples/SimpleApp/MyWorld.cs b/OpenSim/Examples/SimpleApp/MyWorld.cs
index bc7a3b0..334b6af 100644
--- a/OpenSim/Examples/SimpleApp/MyWorld.cs
+++ b/OpenSim/Examples/SimpleApp/MyWorld.cs
@@ -6,7 +6,7 @@ using OpenSim.Framework.Types;
6using OpenSim.Framework.Console; 6using OpenSim.Framework.Console;
7using libsecondlife; 7using libsecondlife;
8using OpenSim.Region; 8using OpenSim.Region;
9using Avatar=OpenSim.Region.Scenes.Avatar; 9using Avatar=OpenSim.Region.Scenes.ScenePresence;
10using OpenSim.Region.Scenes; 10using OpenSim.Region.Scenes;
11using OpenSim.Framework; 11using OpenSim.Framework;
12using OpenSim.Caches; 12using OpenSim.Caches;
@@ -17,7 +17,7 @@ namespace SimpleApp
17 public class MyWorld : Scene 17 public class MyWorld : Scene
18 { 18 {
19 private RegionInfo m_regionInfo; 19 private RegionInfo m_regionInfo;
20 private List<OpenSim.Region.Scenes.Avatar> m_avatars; 20 private List<OpenSim.Region.Scenes.ScenePresence> m_avatars;
21 21
22 public MyWorld(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regionInfo, AuthenticateSessionsBase authen, CommunicationsManager commsMan, AssetCache assetCach) 22 public MyWorld(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regionInfo, AuthenticateSessionsBase authen, CommunicationsManager commsMan, AssetCache assetCach)
23 : base(clientThreads, regionInfo, authen, commsMan, assetCach) 23 : base(clientThreads, regionInfo, authen, commsMan, assetCach)
@@ -43,7 +43,8 @@ namespace SimpleApp
43 43
44 #region IWorld Members 44 #region IWorld Members
45 45
46 override public void AddNewAvatar(IClientAPI client, LLUUID agentID, bool child) 46 override public void AddNewClient(IClientAPI client, LLUUID agentID, bool child)
47
47 { 48 {
48 LLVector3 pos = new LLVector3(128, 128, 128); 49 LLVector3 pos = new LLVector3(128, 128, 128);
49 50
@@ -65,7 +66,7 @@ namespace SimpleApp
65 66
66 client.OnCompleteMovementToRegion += delegate() 67 client.OnCompleteMovementToRegion += delegate()
67 { 68 {
68 client.SendAvatarData(m_regionInfo, client.FirstName, 69 client.SendAvatarData(m_regionInfo.RegionHandle, client.FirstName,
69 client.LastName, client.AgentId, 0, 70 client.LastName, client.AgentId, 0,
70 pos); 71 pos);
71 72
@@ -74,7 +75,7 @@ namespace SimpleApp
74 75
75 client.SendRegionHandshake(m_regionInfo); 76 client.SendRegionHandshake(m_regionInfo);
76 77
77 OpenSim.Region.Scenes.Avatar avatar = new Avatar( client, this, m_regionInfo ); 78 OpenSim.Region.Scenes.ScenePresence avatar = new Avatar( client, this, m_regionInfo );
78 79
79 } 80 }
80 81
@@ -83,7 +84,8 @@ namespace SimpleApp
83 client.SendWearables( AvatarWearable.DefaultWearables ); 84 client.SendWearables( AvatarWearable.DefaultWearables );
84 } 85 }
85 86
86 public void RemoveAvatar(LLUUID agentID) 87
88 override public void RemoveClient(LLUUID agentID)
87 { 89 {
88 90
89 } 91 }