diff options
author | MW | 2007-07-14 14:48:36 +0000 |
---|---|---|
committer | MW | 2007-07-14 14:48:36 +0000 |
commit | 5a909a2054b17c74e23d608a401c0779a3072869 (patch) | |
tree | 53344ac01d4222edba7bc38abe7d78a43bcd7573 /OpenSim/Region/Examples/SimpleApp/Program.cs | |
parent | * encapsulated some public fields (diff) | |
download | opensim-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.cs | 31 |
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; | |||
13 | using OpenSim.Region.ClientStack; | 13 | using OpenSim.Region.ClientStack; |
14 | using OpenSim.Region.Communications.Local; | 14 | using OpenSim.Region.Communications.Local; |
15 | using OpenSim.Region.GridInterfaces.Local; | 15 | using OpenSim.Region.GridInterfaces.Local; |
16 | using OpenSim.Framework.Data; | ||
16 | 17 | ||
17 | namespace SimpleApp | 18 | namespace 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 | } |