aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/Program.cs
diff options
context:
space:
mode:
authorMW2007-07-14 14:48:36 +0000
committerMW2007-07-14 14:48:36 +0000
commit5a909a2054b17c74e23d608a401c0779a3072869 (patch)
tree53344ac01d4222edba7bc38abe7d78a43bcd7573 /OpenSim/Region/Examples/SimpleApp/Program.cs
parent* encapsulated some public fields (diff)
downloadopensim-SC_OLD-5a909a2054b17c74e23d608a401c0779a3072869.zip
opensim-SC_OLD-5a909a2054b17c74e23d608a401c0779a3072869.tar.gz
opensim-SC_OLD-5a909a2054b17c74e23d608a401c0779a3072869.tar.bz2
opensim-SC_OLD-5a909a2054b17c74e23d608a401c0779a3072869.tar.xz
Set up parcel manager and the master avatar in SimpleApp.
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp/Program.cs')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/Program.cs31
1 files changed, 14 insertions, 17 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs
index 42036eb..f30f444 100644
--- a/OpenSim/Region/Examples/SimpleApp/Program.cs
+++ b/OpenSim/Region/Examples/SimpleApp/Program.cs
@@ -13,6 +13,7 @@ using OpenSim.Region.Capabilities;
13using OpenSim.Region.ClientStack; 13using OpenSim.Region.ClientStack;
14using OpenSim.Region.Communications.Local; 14using OpenSim.Region.Communications.Local;
15using OpenSim.Region.GridInterfaces.Local; 15using OpenSim.Region.GridInterfaces.Local;
16using OpenSim.Framework.Data;
16 17
17namespace SimpleApp 18namespace SimpleApp
18{ 19{
@@ -48,7 +49,7 @@ namespace SimpleApp
48 49
49 UDPServer udpServer = new UDPServer( internalEndPoint.Port, assetCache, inventoryCache, m_log, m_circuitManager ); 50 UDPServer udpServer = new UDPServer( internalEndPoint.Port, assetCache, inventoryCache, m_log, m_circuitManager );
50 PacketServer packetServer = new PacketServer(udpServer); 51 PacketServer packetServer = new PacketServer(udpServer);
51 udpServer.ServerListener(); 52
52 53
53 ClientView.TerrainManager = new TerrainManager(new SecondLife()); 54 ClientView.TerrainManager = new TerrainManager(new SecondLife());
54 BaseHttpServer httpServer = new BaseHttpServer(internalEndPoint.Port); 55 BaseHttpServer httpServer = new BaseHttpServer(internalEndPoint.Port);
@@ -62,25 +63,22 @@ namespace SimpleApp
62 world.PhysScene = physManager.GetPhysicsScene("basicphysics"); //PhysicsScene.Null; 63 world.PhysScene = physManager.GetPhysicsScene("basicphysics"); //PhysicsScene.Null;
63 64
64 world.LoadWorldMap(); 65 world.LoadWorldMap();
65 world.ParcelManager.NoParcelDataFromStorage();
66 66
67 udpServer.LocalWorld = world; 67 udpServer.LocalWorld = world;
68
69 httpServer.Start();
70
71 m_log.WriteLine( LogPriority.NORMAL, "Press enter to quit.");
72 m_log.ReadLine();
73 68
69 httpServer.Start();
70 udpServer.ServerListener();
74 71
75 /* 72 UserProfileData masterAvatar = communicationsManager.UserServer.SetupMasterUser("Test", "User", "test");
76 PrimitiveBaseShape shape = PrimitiveBaseShape.DefaultBox(); 73 if (masterAvatar != null)
77 74 {
78 shape.Scale = new LLVector3(0.5f, 0.5f, 0.5f); 75 world.RegionInfo.MasterAvatarAssignedUUID = masterAvatar.UUID;
79 76 world.ParcelManager.NoParcelDataFromStorage();
80 LLVector3 pos = new LLVector3(129,130,25); 77 }
81 78
82 world.AddNewPrim( LLUUID.Random(), pos, shape ); 79 world.CustomStartup();
83 */ 80 m_log.WriteLine( LogPriority.NORMAL, "Press enter to quit.");
81 m_log.ReadLine();
84 82
85 } 83 }
86 84
@@ -136,8 +134,7 @@ namespace SimpleApp
136 { 134 {
137 Program app = new Program(); 135 Program app = new Program();
138 136
139 app.Run(); 137 app.Run();
140
141 } 138 }
142 } 139 }
143} 140}