Renamed World class to Scene class
parent
bb13b4df73
commit
a143cf8180
56
OpenSim.sln
56
OpenSim.sln
|
@ -1,5 +1,5 @@
|
||||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||||
# Visual C# Express 2005
|
# Visual Studio 2005
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Framework.Console", "Common\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj", "{A7CD0630-0000-0000-0000-000000000000}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Framework.Console", "Common\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj", "{A7CD0630-0000-0000-0000-000000000000}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Terrain.BasicTerrain", "OpenSim\OpenSim.Terrain.BasicTerrain\OpenSim.Terrain.BasicTerrain.csproj", "{2270B8FE-0000-0000-0000-000000000000}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Terrain.BasicTerrain", "OpenSim\OpenSim.Terrain.BasicTerrain\OpenSim.Terrain.BasicTerrain.csproj", "{2270B8FE-0000-0000-0000-000000000000}"
|
||||||
|
@ -47,6 +47,60 @@ Global
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectDependencies) = postSolution
|
||||||
|
({EE9E5D96-0000-0000-0000-000000000000}).6 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({EE9E5D96-0000-0000-0000-000000000000}).7 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({63A05FE9-0000-0000-0000-000000000000}).2 = ({8BE16150-0000-0000-0000-000000000000})
|
||||||
|
({683344D5-0000-0000-0000-000000000000}).2 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({196916AF-0000-0000-0000-000000000000}).5 = ({2270B8FE-0000-0000-0000-000000000000})
|
||||||
|
({196916AF-0000-0000-0000-000000000000}).6 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({196916AF-0000-0000-0000-000000000000}).7 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({196916AF-0000-0000-0000-000000000000}).8 = ({E88EF749-0000-0000-0000-000000000000})
|
||||||
|
({196916AF-0000-0000-0000-000000000000}).9 = ({8BE16150-0000-0000-0000-000000000000})
|
||||||
|
({196916AF-0000-0000-0000-000000000000}).10 = ({8BB20F0A-0000-0000-0000-000000000000})
|
||||||
|
({196916AF-0000-0000-0000-000000000000}).11 = ({8E81D43C-0000-0000-0000-000000000000})
|
||||||
|
({196916AF-0000-0000-0000-000000000000}).12 = ({683344D5-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).5 = ({2270B8FE-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).6 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).7 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).8 = ({8BE16150-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).9 = ({8BB20F0A-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).10 = ({196916AF-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).11 = ({632E1BFD-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).12 = ({E88EF749-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).13 = ({683344D5-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).14 = ({1938EB12-0000-0000-0000-000000000000})
|
||||||
|
({438A9556-0000-0000-0000-000000000000}).15 = ({8E81D43C-0000-0000-0000-000000000000})
|
||||||
|
({632E1BFD-0000-0000-0000-000000000000}).5 = ({2270B8FE-0000-0000-0000-000000000000})
|
||||||
|
({632E1BFD-0000-0000-0000-000000000000}).6 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({632E1BFD-0000-0000-0000-000000000000}).7 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({632E1BFD-0000-0000-0000-000000000000}).8 = ({E88EF749-0000-0000-0000-000000000000})
|
||||||
|
({632E1BFD-0000-0000-0000-000000000000}).9 = ({8BE16150-0000-0000-0000-000000000000})
|
||||||
|
({632E1BFD-0000-0000-0000-000000000000}).10 = ({8BB20F0A-0000-0000-0000-000000000000})
|
||||||
|
({632E1BFD-0000-0000-0000-000000000000}).11 = ({1938EB12-0000-0000-0000-000000000000})
|
||||||
|
({632E1BFD-0000-0000-0000-000000000000}).12 = ({8E81D43C-0000-0000-0000-000000000000})
|
||||||
|
({E88EF749-0000-0000-0000-000000000000}).2 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({8BE16150-0000-0000-0000-000000000000}).3 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({8BE16150-0000-0000-0000-000000000000}).4 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({4F874463-0000-0000-0000-000000000000}).2 = ({8BE16150-0000-0000-0000-000000000000})
|
||||||
|
({988F0AC4-0000-0000-0000-000000000000}).3 = ({8BE16150-0000-0000-0000-000000000000})
|
||||||
|
({B55C0B5D-0000-0000-0000-000000000000}).3 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({B55C0B5D-0000-0000-0000-000000000000}).4 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({B55C0B5D-0000-0000-0000-000000000000}).5 = ({8E81D43C-0000-0000-0000-000000000000})
|
||||||
|
({8ACA2445-0000-0000-0000-000000000000}).4 = ({8E81D43C-0000-0000-0000-000000000000})
|
||||||
|
({8ACA2445-0000-0000-0000-000000000000}).5 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({8BB20F0A-0000-0000-0000-000000000000}).2 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({8BB20F0A-0000-0000-0000-000000000000}).3 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({8BB20F0A-0000-0000-0000-000000000000}).5 = ({8E81D43C-0000-0000-0000-000000000000})
|
||||||
|
({E1B79ECF-0000-0000-0000-000000000000}).4 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({E1B79ECF-0000-0000-0000-000000000000}).5 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({6B20B603-0000-0000-0000-000000000000}).5 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({6B20B603-0000-0000-0000-000000000000}).6 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
({1938EB12-0000-0000-0000-000000000000}).3 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({97A82740-0000-0000-0000-000000000000}).3 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({546099CD-0000-0000-0000-000000000000}).4 = ({8ACA2445-0000-0000-0000-000000000000})
|
||||||
|
({546099CD-0000-0000-0000-000000000000}).5 = ({A7CD0630-0000-0000-0000-000000000000})
|
||||||
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{A7CD0630-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{A7CD0630-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{A7CD0630-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{A7CD0630-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
|
|
@ -45,10 +45,10 @@ namespace OpenSim.Region.Estate
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class EstateManager
|
public class EstateManager
|
||||||
{
|
{
|
||||||
private World m_world;
|
private Scene m_world;
|
||||||
private RegionInfo m_regInfo;
|
private RegionInfo m_regInfo;
|
||||||
|
|
||||||
public EstateManager(World world,RegionInfo reginfo)
|
public EstateManager(Scene world,RegionInfo reginfo)
|
||||||
{
|
{
|
||||||
m_world = world; //Estate settings found at world.m_regInfo.estateSettings
|
m_world = world; //Estate settings found at world.m_regInfo.estateSettings
|
||||||
m_regInfo = reginfo;
|
m_regInfo = reginfo;
|
||||||
|
|
|
@ -136,52 +136,52 @@
|
||||||
<Compile Include="Estate\EstateManager.cs">
|
<Compile Include="Estate\EstateManager.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\World.cs">
|
<Compile Include="Scene\Scene.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\World.PacketHandlers.cs">
|
<Compile Include="Scene\Scene.PacketHandlers.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\World.Scripting.cs">
|
<Compile Include="Scene\Scene.Scripting.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\WorldBase.cs">
|
<Compile Include="Scene\SceneBase.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\Entities\Avatar.Animations.cs">
|
<Compile Include="Scene\Entities\Avatar.Animations.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\Entities\Avatar.cs">
|
<Compile Include="Scene\Entities\Avatar.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\Entities\Avatar.Update.cs">
|
<Compile Include="Scene\Entities\Avatar.Update.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\Entities\Entity.cs">
|
<Compile Include="Scene\Entities\Entity.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\Entities\Primitive.cs">
|
<Compile Include="Scene\Entities\Primitive.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\Entities\SceneObject.cs">
|
<Compile Include="Scene\Entities\SceneObject.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\scripting\IScriptContext.cs">
|
<Compile Include="Scene\scripting\IScriptContext.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\scripting\IScriptEntity.cs">
|
<Compile Include="Scene\scripting\IScriptEntity.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\scripting\IScriptHandler.cs">
|
<Compile Include="Scene\scripting\IScriptHandler.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\scripting\Script.cs">
|
<Compile Include="Scene\scripting\Script.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\scripting\ScriptFactory.cs">
|
<Compile Include="Scene\scripting\ScriptFactory.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="World\scripting\Scripts\FollowRandomAvatar.cs">
|
<Compile Include="Scene\scripting\Scripts\FollowRandomAvatar.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
@ -13,22 +13,22 @@
|
||||||
<sources failonempty="true">
|
<sources failonempty="true">
|
||||||
<include name="ParcelManager.cs" />
|
<include name="ParcelManager.cs" />
|
||||||
<include name="Estate/EstateManager.cs" />
|
<include name="Estate/EstateManager.cs" />
|
||||||
<include name="World/World.cs" />
|
<include name="Scene/Scene.cs" />
|
||||||
<include name="World/World.PacketHandlers.cs" />
|
<include name="Scene/Scene.PacketHandlers.cs" />
|
||||||
<include name="World/World.Scripting.cs" />
|
<include name="Scene/Scene.Scripting.cs" />
|
||||||
<include name="World/WorldBase.cs" />
|
<include name="Scene/SceneBase.cs" />
|
||||||
<include name="World/Entities/Avatar.Animations.cs" />
|
<include name="Scene/Entities/Avatar.Animations.cs" />
|
||||||
<include name="World/Entities/Avatar.cs" />
|
<include name="Scene/Entities/Avatar.cs" />
|
||||||
<include name="World/Entities/Avatar.Update.cs" />
|
<include name="Scene/Entities/Avatar.Update.cs" />
|
||||||
<include name="World/Entities/Entity.cs" />
|
<include name="Scene/Entities/Entity.cs" />
|
||||||
<include name="World/Entities/Primitive.cs" />
|
<include name="Scene/Entities/Primitive.cs" />
|
||||||
<include name="World/Entities/SceneObject.cs" />
|
<include name="Scene/Entities/SceneObject.cs" />
|
||||||
<include name="World/scripting/IScriptContext.cs" />
|
<include name="Scene/scripting/IScriptContext.cs" />
|
||||||
<include name="World/scripting/IScriptEntity.cs" />
|
<include name="Scene/scripting/IScriptEntity.cs" />
|
||||||
<include name="World/scripting/IScriptHandler.cs" />
|
<include name="Scene/scripting/IScriptHandler.cs" />
|
||||||
<include name="World/scripting/Script.cs" />
|
<include name="Scene/scripting/Script.cs" />
|
||||||
<include name="World/scripting/ScriptFactory.cs" />
|
<include name="Scene/scripting/ScriptFactory.cs" />
|
||||||
<include name="World/scripting/Scripts/FollowRandomAvatar.cs" />
|
<include name="Scene/scripting/Scripts/FollowRandomAvatar.cs" />
|
||||||
</sources>
|
</sources>
|
||||||
<references basedir="${project::get-base-directory()}">
|
<references basedir="${project::get-base-directory()}">
|
||||||
<lib>
|
<lib>
|
||||||
|
|
|
@ -74,13 +74,13 @@ namespace OpenSim.Region
|
||||||
private int lastParcelLocalID = START_PARCEL_LOCAL_ID - 1;
|
private int lastParcelLocalID = START_PARCEL_LOCAL_ID - 1;
|
||||||
private int[,] parcelIDList = new int[64, 64];
|
private int[,] parcelIDList = new int[64, 64];
|
||||||
|
|
||||||
private World m_world;
|
private Scene m_world;
|
||||||
private RegionInfo m_regInfo;
|
private RegionInfo m_regInfo;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
public ParcelManager(World world, RegionInfo reginfo)
|
public ParcelManager(Scene world, RegionInfo reginfo)
|
||||||
{
|
{
|
||||||
|
|
||||||
m_world = world;
|
m_world = world;
|
||||||
|
@ -497,7 +497,7 @@ namespace OpenSim.Region
|
||||||
{
|
{
|
||||||
#region Member Variables
|
#region Member Variables
|
||||||
public ParcelData parcelData = new ParcelData();
|
public ParcelData parcelData = new ParcelData();
|
||||||
public World m_world;
|
public Scene m_world;
|
||||||
|
|
||||||
private bool[,] parcelBitmap = new bool[64, 64];
|
private bool[,] parcelBitmap = new bool[64, 64];
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ namespace OpenSim.Region
|
||||||
|
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
public Parcel(LLUUID owner_id, bool is_group_owned, World world)
|
public Parcel(LLUUID owner_id, bool is_group_owned, Scene world)
|
||||||
{
|
{
|
||||||
m_world = world;
|
m_world = world;
|
||||||
parcelData.ownerID = owner_id;
|
parcelData.ownerID = owner_id;
|
||||||
|
|
|
@ -70,7 +70,7 @@ namespace OpenSim.Region
|
||||||
/// <param name="world"></param>
|
/// <param name="world"></param>
|
||||||
/// <param name="clientThreads"></param>
|
/// <param name="clientThreads"></param>
|
||||||
/// <param name="regionDat"></param>
|
/// <param name="regionDat"></param>
|
||||||
public Avatar(IClientAPI theClient, World world, Dictionary<uint, IClientAPI> clientThreads, RegionInfo reginfo)
|
public Avatar(IClientAPI theClient, Scene world, Dictionary<uint, IClientAPI> clientThreads, RegionInfo reginfo)
|
||||||
{
|
{
|
||||||
|
|
||||||
m_world = world;
|
m_world = world;
|
||||||
|
|
|
@ -44,7 +44,7 @@ namespace OpenSim.Region
|
||||||
protected List<Entity> children;
|
protected List<Entity> children;
|
||||||
protected LLVector3 m_pos;
|
protected LLVector3 m_pos;
|
||||||
protected PhysicsActor _physActor;
|
protected PhysicsActor _physActor;
|
||||||
protected World m_world;
|
protected Scene m_world;
|
||||||
protected string m_name;
|
protected string m_name;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -92,7 +92,7 @@ namespace OpenSim.Region
|
||||||
/// <param name="clientThreads"></param>
|
/// <param name="clientThreads"></param>
|
||||||
/// <param name="regionHandle"></param>
|
/// <param name="regionHandle"></param>
|
||||||
/// <param name="world"></param>
|
/// <param name="world"></param>
|
||||||
public Primitive( ulong regionHandle, World world)
|
public Primitive( ulong regionHandle, Scene world)
|
||||||
{
|
{
|
||||||
// m_clientThreads = clientThreads;
|
// m_clientThreads = clientThreads;
|
||||||
m_regionHandle = regionHandle;
|
m_regionHandle = regionHandle;
|
||||||
|
@ -108,7 +108,7 @@ namespace OpenSim.Region
|
||||||
/// <param name="addPacket"></param>
|
/// <param name="addPacket"></param>
|
||||||
/// <param name="ownerID"></param>
|
/// <param name="ownerID"></param>
|
||||||
/// <param name="localID"></param>
|
/// <param name="localID"></param>
|
||||||
public Primitive(ulong regionHandle, World world, ObjectAddPacket addPacket, LLUUID ownerID, uint localID)
|
public Primitive(ulong regionHandle, Scene world, ObjectAddPacket addPacket, LLUUID ownerID, uint localID)
|
||||||
{
|
{
|
||||||
// m_clientThreads = clientThreads;
|
// m_clientThreads = clientThreads;
|
||||||
m_regionHandle = regionHandle;
|
m_regionHandle = regionHandle;
|
||||||
|
@ -126,7 +126,7 @@ namespace OpenSim.Region
|
||||||
/// <param name="owner"></param>
|
/// <param name="owner"></param>
|
||||||
/// <param name="fullID"></param>
|
/// <param name="fullID"></param>
|
||||||
/// <param name="localID"></param>
|
/// <param name="localID"></param>
|
||||||
public Primitive( ulong regionHandle, World world, LLUUID owner, LLUUID fullID, uint localID)
|
public Primitive( ulong regionHandle, Scene world, LLUUID owner, LLUUID fullID, uint localID)
|
||||||
{
|
{
|
||||||
// m_clientThreads = clientThreads;
|
// m_clientThreads = clientThreads;
|
||||||
m_regionHandle = regionHandle;
|
m_regionHandle = regionHandle;
|
||||||
|
@ -148,7 +148,7 @@ namespace OpenSim.Region
|
||||||
/// <param name="owner"></param>
|
/// <param name="owner"></param>
|
||||||
/// <param name="localID"></param>
|
/// <param name="localID"></param>
|
||||||
/// <param name="position"></param>
|
/// <param name="position"></param>
|
||||||
public Primitive( ulong regionHandle, World world, LLUUID owner, uint localID, LLVector3 position)
|
public Primitive( ulong regionHandle, Scene world, LLUUID owner, uint localID, LLVector3 position)
|
||||||
{
|
{
|
||||||
//m_clientThreads = clientThreads;
|
//m_clientThreads = clientThreads;
|
||||||
m_regionHandle = regionHandle;
|
m_regionHandle = regionHandle;
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace OpenSim.Region
|
||||||
private LLUUID rootUUID;
|
private LLUUID rootUUID;
|
||||||
//private Dictionary<LLUUID, Primitive> ChildPrimitives = new Dictionary<LLUUID, Primitive>();
|
//private Dictionary<LLUUID, Primitive> ChildPrimitives = new Dictionary<LLUUID, Primitive>();
|
||||||
protected Primitive rootPrimitive;
|
protected Primitive rootPrimitive;
|
||||||
private World m_world;
|
private Scene m_world;
|
||||||
protected ulong regionHandle;
|
protected ulong regionHandle;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -38,7 +38,7 @@ using OpenSim.Framework.Utilities;
|
||||||
|
|
||||||
namespace OpenSim.Region
|
namespace OpenSim.Region
|
||||||
{
|
{
|
||||||
public partial class World
|
public partial class Scene
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
|
@ -37,7 +37,7 @@ using libsecondlife;
|
||||||
|
|
||||||
namespace OpenSim.Region
|
namespace OpenSim.Region
|
||||||
{
|
{
|
||||||
public partial class World
|
public partial class Scene
|
||||||
{
|
{
|
||||||
private Dictionary<string, IScriptEngine> scriptEngines = new Dictionary<string, IScriptEngine>();
|
private Dictionary<string, IScriptEngine> scriptEngines = new Dictionary<string, IScriptEngine>();
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace OpenSim.Region
|
||||||
{
|
{
|
||||||
public delegate bool FilterAvatarList(Avatar avatar);
|
public delegate bool FilterAvatarList(Avatar avatar);
|
||||||
|
|
||||||
public partial class World : WorldBase, ILocalStorageReceiver, IScriptAPI
|
public partial class Scene : SceneBase, ILocalStorageReceiver, IScriptAPI
|
||||||
{
|
{
|
||||||
protected System.Timers.Timer m_heartbeatTimer = new System.Timers.Timer();
|
protected System.Timers.Timer m_heartbeatTimer = new System.Timers.Timer();
|
||||||
protected Dictionary<libsecondlife.LLUUID, Avatar> Avatars;
|
protected Dictionary<libsecondlife.LLUUID, Avatar> Avatars;
|
||||||
|
@ -96,7 +96,7 @@ namespace OpenSim.Region
|
||||||
/// <param name="clientThreads">Dictionary to contain client threads</param>
|
/// <param name="clientThreads">Dictionary to contain client threads</param>
|
||||||
/// <param name="regionHandle">Region Handle for this region</param>
|
/// <param name="regionHandle">Region Handle for this region</param>
|
||||||
/// <param name="regionName">Region Name for this region</param>
|
/// <param name="regionName">Region Name for this region</param>
|
||||||
public World(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regInfo, AuthenticateSessionsBase authen, RegionServerCommsManager commsMan)
|
public Scene(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regInfo, AuthenticateSessionsBase authen, RegionServerCommsManager commsMan)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
|
@ -42,7 +42,7 @@ using OpenSim.Terrain;
|
||||||
|
|
||||||
namespace OpenSim.Region
|
namespace OpenSim.Region
|
||||||
{
|
{
|
||||||
public abstract class WorldBase : IWorld
|
public abstract class SceneBase : IWorld
|
||||||
{
|
{
|
||||||
public Dictionary<libsecondlife.LLUUID, Entity> Entities;
|
public Dictionary<libsecondlife.LLUUID, Entity> Entities;
|
||||||
protected Dictionary<uint, IClientAPI> m_clientThreads;
|
protected Dictionary<uint, IClientAPI> m_clientThreads;
|
|
@ -40,7 +40,7 @@ namespace OpenSim.Region.Scripting
|
||||||
|
|
||||||
public class ScriptHandler : IScriptContext, IScriptEntity, IScriptReadonlyEntity
|
public class ScriptHandler : IScriptContext, IScriptEntity, IScriptReadonlyEntity
|
||||||
{
|
{
|
||||||
private World m_world;
|
private Scene m_world;
|
||||||
private Script m_script;
|
private Script m_script;
|
||||||
private Entity m_entity;
|
private Entity m_entity;
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ namespace OpenSim.Region.Scripting
|
||||||
m_script.OnFrame(this);
|
m_script.OnFrame(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ScriptHandler(Script script, Entity entity, World world)
|
public ScriptHandler(Script script, Entity entity, Scene world)
|
||||||
{
|
{
|
||||||
m_script = script;
|
m_script = script;
|
||||||
m_entity = entity;
|
m_entity = entity;
|
||||||
|
|
|
@ -180,7 +180,7 @@ namespace OpenSim
|
||||||
protected override void SetupWorld()
|
protected override void SetupWorld()
|
||||||
{
|
{
|
||||||
IGenericConfig regionConfig;
|
IGenericConfig regionConfig;
|
||||||
World LocalWorld;
|
Scene LocalWorld;
|
||||||
UDPServer udpServer;
|
UDPServer udpServer;
|
||||||
RegionInfo regionDat = new RegionInfo();
|
RegionInfo regionDat = new RegionInfo();
|
||||||
AuthenticateSessionsBase authenBase;
|
AuthenticateSessionsBase authenBase;
|
||||||
|
@ -234,7 +234,7 @@ namespace OpenSim
|
||||||
m_console.componentname = "Region " + regionData.RegionName;
|
m_console.componentname = "Region " + regionData.RegionName;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
LocalWorld = new World(udpServer.PacketServer.ClientAPIs, regionDat, authenBase, commsManager);
|
LocalWorld = new Scene(udpServer.PacketServer.ClientAPIs, regionDat, authenBase, commsManager);
|
||||||
this.m_localWorld.Add(LocalWorld);
|
this.m_localWorld.Add(LocalWorld);
|
||||||
//LocalWorld.InventoryCache = InventoryCache;
|
//LocalWorld.InventoryCache = InventoryCache;
|
||||||
//LocalWorld.AssetCache = AssetCache;
|
//LocalWorld.AssetCache = AssetCache;
|
||||||
|
@ -392,7 +392,7 @@ namespace OpenSim
|
||||||
m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Shutdown() - Closing console and terminating");
|
m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Shutdown() - Closing console and terminating");
|
||||||
for (int i = 0; i < m_localWorld.Count; i++)
|
for (int i = 0; i < m_localWorld.Count; i++)
|
||||||
{
|
{
|
||||||
((World)m_localWorld[i]).Close();
|
((Scene)m_localWorld[i]).Close();
|
||||||
}
|
}
|
||||||
m_console.Close();
|
m_console.Close();
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
|
|
Loading…
Reference in New Issue