Set up parcel manager and the master avatar in SimpleApp.

This commit is contained in:
MW
2007-07-14 14:48:36 +00:00
parent 0bb2b7f18d
commit 5a909a2054
4 changed files with 68 additions and 78 deletions

View File

@@ -13,6 +13,7 @@ using OpenSim.Region.Capabilities;
using OpenSim.Region.ClientStack;
using OpenSim.Region.Communications.Local;
using OpenSim.Region.GridInterfaces.Local;
using OpenSim.Framework.Data;
namespace SimpleApp
{
@@ -48,7 +49,7 @@ namespace SimpleApp
UDPServer udpServer = new UDPServer( internalEndPoint.Port, assetCache, inventoryCache, m_log, m_circuitManager );
PacketServer packetServer = new PacketServer(udpServer);
udpServer.ServerListener();
ClientView.TerrainManager = new TerrainManager(new SecondLife());
BaseHttpServer httpServer = new BaseHttpServer(internalEndPoint.Port);
@@ -62,26 +63,23 @@ namespace SimpleApp
world.PhysScene = physManager.GetPhysicsScene("basicphysics"); //PhysicsScene.Null;
world.LoadWorldMap();
world.ParcelManager.NoParcelDataFromStorage();
udpServer.LocalWorld = world;
httpServer.Start();
udpServer.ServerListener();
UserProfileData masterAvatar = communicationsManager.UserServer.SetupMasterUser("Test", "User", "test");
if (masterAvatar != null)
{
world.RegionInfo.MasterAvatarAssignedUUID = masterAvatar.UUID;
world.ParcelManager.NoParcelDataFromStorage();
}
world.CustomStartup();
m_log.WriteLine( LogPriority.NORMAL, "Press enter to quit.");
m_log.ReadLine();
/*
PrimitiveBaseShape shape = PrimitiveBaseShape.DefaultBox();
shape.Scale = new LLVector3(0.5f, 0.5f, 0.5f);
LLVector3 pos = new LLVector3(129,130,25);
world.AddNewPrim( LLUUID.Random(), pos, shape );
*/
}
private bool AddNewSessionHandler(ulong regionHandle, Login loginData)
@@ -136,8 +134,7 @@ namespace SimpleApp
{
Program app = new Program();
app.Run();
app.Run();
}
}
}