diff options
author | lbsa71 | 2007-07-13 18:01:44 +0000 |
---|---|---|
committer | lbsa71 | 2007-07-13 18:01:44 +0000 |
commit | a076369fa3dee4c99d4b7a6c8b699710c75ebc04 (patch) | |
tree | 58ce13dbce4419bea2e2bef97c8452b90899843e /OpenSim/Region/Examples/SimpleApp | |
parent | * Renamed OpenSim.Region.Enviroment.Scripting to OpenSim.Region.Scripting (diff) | |
download | opensim-SC_OLD-a076369fa3dee4c99d4b7a6c8b699710c75ebc04.zip opensim-SC_OLD-a076369fa3dee4c99d4b7a6c8b699710c75ebc04.tar.gz opensim-SC_OLD-a076369fa3dee4c99d4b7a6c8b699710c75ebc04.tar.bz2 opensim-SC_OLD-a076369fa3dee4c99d4b7a6c8b699710c75ebc04.tar.xz |
* I want to commit too!
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp')
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/MyWorld.cs | 18 | ||||
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/Program.cs | 4 |
2 files changed, 2 insertions, 20 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/MyWorld.cs b/OpenSim/Region/Examples/SimpleApp/MyWorld.cs index ee35b8e..39666fb 100644 --- a/OpenSim/Region/Examples/SimpleApp/MyWorld.cs +++ b/OpenSim/Region/Examples/SimpleApp/MyWorld.cs | |||
@@ -52,7 +52,6 @@ namespace SimpleApp | |||
52 | client.SendChatMessage("Ready.", 1, pos, "System", LLUUID.Zero ); | 52 | client.SendChatMessage("Ready.", 1, pos, "System", LLUUID.Zero ); |
53 | }; | 53 | }; |
54 | 54 | ||
55 | client.OnRequestWearables += SendWearables; | ||
56 | client.OnAddPrim += AddNewPrim; | 55 | client.OnAddPrim += AddNewPrim; |
57 | client.OnUpdatePrimGroupPosition += this.UpdatePrimPosition; | 56 | client.OnUpdatePrimGroupPosition += this.UpdatePrimPosition; |
58 | client.OnRequestMapBlocks += this.RequestMapBlocks; | 57 | client.OnRequestMapBlocks += this.RequestMapBlocks; |
@@ -61,20 +60,8 @@ namespace SimpleApp | |||
61 | client.OnNameFromUUIDRequest += this.commsManager.HandleUUIDNameRequest; | 60 | client.OnNameFromUUIDRequest += this.commsManager.HandleUUIDNameRequest; |
62 | 61 | ||
63 | client.OnCompleteMovementToRegion += delegate() | 62 | client.OnCompleteMovementToRegion += delegate() |
64 | { | ||
65 | client.MoveAgentIntoRegion(m_regInfo, pos, LLVector3.Zero ); | ||
66 | }; | ||
67 | |||
68 | client.OnCompleteMovementToRegion += delegate() | ||
69 | { | 63 | { |
70 | client.SendAvatarData(m_regInfo.RegionHandle, client.FirstName, | ||
71 | client.LastName, client.AgentId, 0, | ||
72 | pos, null); | ||
73 | |||
74 | client.SendChatMessage("Welcome to My World.", 1, pos, "System", LLUUID.Zero ); | 64 | client.SendChatMessage("Welcome to My World.", 1, pos, "System", LLUUID.Zero ); |
75 | |||
76 | |||
77 | |||
78 | }; | 65 | }; |
79 | 66 | ||
80 | client.SendRegionHandshake(m_regInfo); | 67 | client.SendRegionHandshake(m_regInfo); |
@@ -83,11 +70,6 @@ namespace SimpleApp | |||
83 | 70 | ||
84 | } | 71 | } |
85 | 72 | ||
86 | private void SendWearables( IClientAPI client ) | ||
87 | { | ||
88 | client.SendWearables( AvatarWearable.DefaultWearables ); | ||
89 | } | ||
90 | |||
91 | #endregion | 73 | #endregion |
92 | } | 74 | } |
93 | } | 75 | } |
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs index ce3c056..e5e2234 100644 --- a/OpenSim/Region/Examples/SimpleApp/Program.cs +++ b/OpenSim/Region/Examples/SimpleApp/Program.cs | |||
@@ -68,9 +68,9 @@ namespace SimpleApp | |||
68 | 68 | ||
69 | PrimitiveBaseShape shape = PrimitiveBaseShape.DefaultBox(); | 69 | PrimitiveBaseShape shape = PrimitiveBaseShape.DefaultBox(); |
70 | 70 | ||
71 | shape.Scale = new LLVector3(1, 1, 1); | 71 | shape.Scale = new LLVector3(10, 10, 10); |
72 | 72 | ||
73 | LLVector3 pos = new LLVector3(1,1,1); | 73 | LLVector3 pos = new LLVector3(128,128,72); |
74 | 74 | ||
75 | world.AddNewPrim( LLUUID.Zero, pos, shape ); | 75 | world.AddNewPrim( LLUUID.Zero, pos, shape ); |
76 | 76 | ||