aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/MyWorld.cs
diff options
context:
space:
mode:
authorlbsa712007-07-01 13:17:27 +0000
committerlbsa712007-07-01 13:17:27 +0000
commit5e805656db1215518a344d6d5364629a4997fd47 (patch)
tree2d8b50bac8e77f983e3016e969df3535c52fb0d3 /OpenSim/Region/Examples/SimpleApp/MyWorld.cs
parent* Project files fixed for OGS. (diff)
downloadopensim-SC_OLD-5e805656db1215518a344d6d5364629a4997fd47.zip
opensim-SC_OLD-5e805656db1215518a344d6d5364629a4997fd47.tar.gz
opensim-SC_OLD-5e805656db1215518a344d6d5364629a4997fd47.tar.bz2
opensim-SC_OLD-5e805656db1215518a344d6d5364629a4997fd47.tar.xz
Fixed SimpleApp - aka thankgoditssundaycommit
* Updated SimpleApp with various introduced dependencies * Extracted ScenePrescence creation in Scene * removed try-catchall from UserManagerBase (that actually hid a bug) * Refactored RegionInfo * handle is calculated * it will explode upon accessing x,y,ip,port,externalip if not explicitly initialized * Removed superfluous 'ref' keywords * Removed a shitload of 'catch Exception e' that causes build warnings * Lots of small refactorings, renames et c * Ignored some bins
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp/MyWorld.cs')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/MyWorld.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/MyWorld.cs b/OpenSim/Region/Examples/SimpleApp/MyWorld.cs
index 89f39d3..fe1fc16 100644
--- a/OpenSim/Region/Examples/SimpleApp/MyWorld.cs
+++ b/OpenSim/Region/Examples/SimpleApp/MyWorld.cs
@@ -44,7 +44,7 @@ namespace SimpleApp
44 44
45 #region IWorld Members 45 #region IWorld Members
46 46
47 override public void AddNewClient(IClientAPI client, LLUUID agentID, bool child) 47 override public void AddNewClient(IClientAPI client, bool child)
48 48
49 { 49 {
50 LLVector3 pos = new LLVector3(128, 128, 128); 50 LLVector3 pos = new LLVector3(128, 128, 128);
@@ -59,7 +59,13 @@ namespace SimpleApp
59 }; 59 };
60 60
61 client.OnRequestWearables += SendWearables; 61 client.OnRequestWearables += SendWearables;
62 62 client.OnAddPrim += AddNewPrim;
63 client.OnUpdatePrimPosition += this.UpdatePrimPosition;
64 client.OnRequestMapBlocks += this.RequestMapBlocks;
65 client.OnTeleportLocationRequest += this.RequestTeleportLocation;
66 client.OnGrapUpdate += this.MoveObject;
67 client.OnNameFromUUIDRequest += this.commsManager.HandleUUIDNameRequest;
68
63 client.OnCompleteMovementToRegion += delegate() 69 client.OnCompleteMovementToRegion += delegate()
64 { 70 {
65 client.MoveAgentIntoRegion(m_regionInfo, pos, LLVector3.Zero ); 71 client.MoveAgentIntoRegion(m_regionInfo, pos, LLVector3.Zero );
@@ -76,7 +82,7 @@ namespace SimpleApp
76 82
77 client.SendRegionHandshake(m_regionInfo); 83 client.SendRegionHandshake(m_regionInfo);
78 84
79 OpenSim.Region.Environment.Scenes.ScenePresence avatar = new Avatar( client, this, m_regionInfo ); 85 CreateAndAddScenePresence(client);
80 86
81 } 87 }
82 88
@@ -85,12 +91,6 @@ namespace SimpleApp
85 client.SendWearables( AvatarWearable.DefaultWearables ); 91 client.SendWearables( AvatarWearable.DefaultWearables );
86 } 92 }
87 93
88
89 override public void RemoveClient(LLUUID agentID)
90 {
91
92 }
93
94 public RegionInfo RegionInfo 94 public RegionInfo RegionInfo
95 { 95 {
96 get { return m_regionInfo; } 96 get { return m_regionInfo; }