mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
* Purged 'Regions' code pending Agent layer grok.
* Changed so prims aren't loaded until AFTER parcels. * The region startup flow is still an ungodly rats nest.
This commit is contained in:
@@ -49,7 +49,6 @@ using OpenSim.Region.Environment.Types;
|
||||
using OpenSim.Region.Physics.Manager;
|
||||
using OpenSim.Region.Terrain;
|
||||
using Timer = System.Timers.Timer;
|
||||
using OpenSim.Region.Environment.Regions;
|
||||
|
||||
namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
@@ -64,8 +63,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// publicized so it can be accessed from SceneObjectGroup.
|
||||
protected float timeStep = 0.1f;
|
||||
|
||||
private Regions.Region m_region;
|
||||
|
||||
private Random Rand = new Random();
|
||||
private uint _primCount = 702000;
|
||||
private readonly Mutex _primAllocateMutex = new Mutex(false);
|
||||
@@ -162,8 +159,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
updateLock = new Mutex(false);
|
||||
|
||||
m_region = new Regions.Region(this);
|
||||
|
||||
m_moduleLoader = moduleLoader;
|
||||
authenticateHandler = authen;
|
||||
commsManager = commsMan;
|
||||
@@ -373,7 +368,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <returns></returns>
|
||||
internal void Broadcast(Action<IClientAPI> whatToDo)
|
||||
{
|
||||
m_region.Broadcast(whatToDo);
|
||||
ForEachScenePresence( delegate( ScenePresence presence )
|
||||
{
|
||||
whatToDo(presence.ControllingClient);
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
@@ -458,7 +456,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <summary>
|
||||
/// Loads the World's objects
|
||||
/// </summary>
|
||||
public void LoadPrimsFromStorage()
|
||||
public virtual void LoadPrimsFromStorage()
|
||||
{
|
||||
MainLog.Instance.Verbose("Loading objects from datastore");
|
||||
List<SceneObjectGroup> PrimsFromDB = storageManager.DataStore.LoadObjects(m_regInfo.SimUUID);
|
||||
@@ -790,11 +788,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
m_scenePresences.Remove(agentID);
|
||||
}
|
||||
|
||||
lock (m_region)
|
||||
{
|
||||
m_region.Remove(agentID);
|
||||
}
|
||||
|
||||
lock (Entities)
|
||||
{
|
||||
Entities.Remove(agentID);
|
||||
@@ -1135,7 +1128,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
|
||||
public void SendUrlToUser(LLUUID avatarID, string objectname, LLUUID objectID, LLUUID ownerID, bool groupOwned,
|
||||
string message, string url)
|
||||
string message, string url)
|
||||
{
|
||||
if (m_scenePresences.ContainsKey(avatarID))
|
||||
{
|
||||
|
||||
@@ -35,7 +35,6 @@ using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Framework.Types;
|
||||
using OpenSim.Framework.Utilities;
|
||||
using OpenSim.Region.Physics.Manager;
|
||||
using OpenSim.Region.Environment.Regions;
|
||||
|
||||
namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
@@ -214,13 +213,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
set { m_isChildAgent = value; }
|
||||
}
|
||||
|
||||
private RegionSubscription m_regionSubscription;
|
||||
|
||||
public RegionSubscription RegionSubscription
|
||||
{
|
||||
get { return m_regionSubscription; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor(s)
|
||||
@@ -234,8 +226,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <param name="regionDat"></param>
|
||||
public ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo)
|
||||
{
|
||||
m_regionSubscription = new RegionSubscription( client );
|
||||
|
||||
m_scene = world;
|
||||
m_uuid = client.AgentId;
|
||||
|
||||
@@ -881,7 +871,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public static void CreateDefaultTextureEntry()
|
||||
static ScenePresence()
|
||||
{
|
||||
LLObject.TextureEntry textu = new LLObject.TextureEntry(new LLUUID("C228D1CF-4B5D-4BA8-84F4-899A0796AA97"));
|
||||
textu.CreateFace(0).TextureID = new LLUUID("00000000-0000-1111-9999-000000000012");
|
||||
|
||||
Reference in New Issue
Block a user