mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Small clean up of files and directories
This commit is contained in:
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using OpenSim.Assets;
|
||||
using OpenSim.Framework.Assets;
|
||||
using OpenSim.Framework.Types;
|
||||
using OpenSim.Framework.Utilities;
|
||||
using libsecondlife;
|
||||
using libsecondlife.Packets;
|
||||
|
||||
@@ -32,7 +32,7 @@ using libsecondlife;
|
||||
using libsecondlife.Packets;
|
||||
using OpenSim;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Framework.Assets;
|
||||
using OpenSim.Framework.Types;
|
||||
using OpenSim.Framework.Utilities;
|
||||
|
||||
namespace OpenSim.Assets
|
||||
|
||||
@@ -32,7 +32,7 @@ using OpenSim;
|
||||
using libsecondlife.Packets;
|
||||
//using OpenSim.GridServers;
|
||||
using OpenSim.Framework.Inventory;
|
||||
using OpenSim.Framework.Assets;
|
||||
using OpenSim.Framework.Types;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
|
||||
namespace OpenSim.Assets
|
||||
@@ -125,7 +125,7 @@ namespace OpenSim.Assets
|
||||
return res;
|
||||
}
|
||||
|
||||
public LLUUID AddNewInventoryItem(SimClient remoteClient, LLUUID folderID, OpenSim.Framework.Assets.AssetBase asset)
|
||||
public LLUUID AddNewInventoryItem(SimClient remoteClient, LLUUID folderID, OpenSim.Framework.Types.AssetBase asset)
|
||||
{
|
||||
LLUUID newItem = null;
|
||||
if (this._agentsInventory.ContainsKey(remoteClient.AgentID))
|
||||
@@ -161,7 +161,7 @@ namespace OpenSim.Assets
|
||||
return res;
|
||||
}
|
||||
|
||||
public bool UpdateInventoryItemAsset(SimClient remoteClient, LLUUID itemID, OpenSim.Framework.Assets.AssetBase asset)
|
||||
public bool UpdateInventoryItemAsset(SimClient remoteClient, LLUUID itemID, OpenSim.Framework.Types.AssetBase asset)
|
||||
{
|
||||
if (this._agentsInventory.ContainsKey(remoteClient.AgentID))
|
||||
{
|
||||
|
||||
@@ -121,9 +121,6 @@
|
||||
<Compile Include="AgentAssetUpload.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ConsoleCmds.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Grid.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
@@ -145,9 +142,6 @@
|
||||
<Compile Include="SimClient.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SimConsole.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="VersionInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
@@ -187,12 +181,6 @@
|
||||
<Compile Include="world\Primitive2.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="world\ScriptEngine.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="world\SurfacePatch.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="world\World.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
@@ -202,9 +190,6 @@
|
||||
<Compile Include="world\WorldScripting.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="world\scripting\IScript.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="world\scripting\IScriptContext.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
</resources>
|
||||
<sources failonempty="true">
|
||||
<include name="AgentAssetUpload.cs" />
|
||||
<include name="ConsoleCmds.cs" />
|
||||
<include name="Grid.cs" />
|
||||
<include name="OpenSimMain.cs" />
|
||||
<include name="OpenSimNetworkHandler.cs" />
|
||||
@@ -20,7 +19,6 @@
|
||||
<include name="QueItem.cs" />
|
||||
<include name="RegionInfo.cs" />
|
||||
<include name="SimClient.cs" />
|
||||
<include name="SimConsole.cs" />
|
||||
<include name="VersionInfo.cs" />
|
||||
<include name="Assets/AssetCache.cs" />
|
||||
<include name="Assets/InventoryCache.cs" />
|
||||
@@ -34,12 +32,9 @@
|
||||
<include name="world/Entity.cs" />
|
||||
<include name="world/Primitive.cs" />
|
||||
<include name="world/Primitive2.cs" />
|
||||
<include name="world/ScriptEngine.cs" />
|
||||
<include name="world/SurfacePatch.cs" />
|
||||
<include name="world/World.cs" />
|
||||
<include name="world/WorldPacketHandlers.cs" />
|
||||
<include name="world/WorldScripting.cs" />
|
||||
<include name="world/scripting/IScript.cs" />
|
||||
<include name="world/scripting/IScriptContext.cs" />
|
||||
<include name="world/scripting/IScriptEntity.cs" />
|
||||
<include name="world/scripting/IScriptHandler.cs" />
|
||||
|
||||
@@ -41,6 +41,7 @@ using libsecondlife.Packets;
|
||||
using OpenSim.world;
|
||||
using OpenSim.Terrain;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Framework.Types;
|
||||
using OpenSim.UserServer;
|
||||
using OpenSim.Assets;
|
||||
using OpenSim.CAPS;
|
||||
@@ -82,7 +83,7 @@ namespace OpenSim
|
||||
public string m_physicsEngine;
|
||||
public bool m_sandbox = false;
|
||||
public bool m_loginserver;
|
||||
public OpenGridProtocolServer OGSServer;
|
||||
public OpenGridProtocolServer OGSServer;
|
||||
public bool user_accounts = false;
|
||||
public bool gridLocalAsset = false;
|
||||
|
||||
@@ -205,8 +206,8 @@ namespace OpenSim
|
||||
|
||||
if (gridServer.GetName() == "Remote")
|
||||
{
|
||||
// should startup the OGS protocol server here
|
||||
OGSServer = new OpenGridProtocolServer(8500);
|
||||
// should startup the OGS protocol server here
|
||||
//OGSServer = new OpenGridProtocolServer(8500);
|
||||
|
||||
// we are in Grid mode so set a XmlRpc handler to handle "expect_user" calls from the user server
|
||||
httpServer.AddXmlRPCHandler("expect_user",
|
||||
@@ -298,12 +299,13 @@ namespace OpenSim
|
||||
|
||||
m_console.WriteLine("Main.cs:Startup() - Starting HTTP server");
|
||||
httpServer.Start();
|
||||
|
||||
if(gridServer.GetName() == "Remote") {
|
||||
m_console.WriteLine("Main.cs:Startup() - Starting up OGS protocol server");
|
||||
OGSServer.Start();
|
||||
}
|
||||
|
||||
|
||||
if (gridServer.GetName() == "Remote")
|
||||
{
|
||||
m_console.WriteLine("Main.cs:Startup() - Starting up OGS protocol server");
|
||||
OGSServer.Start();
|
||||
}
|
||||
|
||||
MainServerListener();
|
||||
|
||||
m_heartbeatTimer.Enabled = true;
|
||||
@@ -523,7 +525,7 @@ namespace OpenSim
|
||||
|
||||
case "terrain":
|
||||
string result = "";
|
||||
if (!LocalWorld.Terrain.RunTerrainCmd(cmdparams,ref result))
|
||||
if (!LocalWorld.Terrain.RunTerrainCmd(cmdparams, ref result))
|
||||
{
|
||||
m_console.WriteLine(result);
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ using System.IO;
|
||||
using System.Threading;
|
||||
using System.Timers;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Framework.Assets;
|
||||
using OpenSim.Framework.Types;
|
||||
using OpenSim.Framework.Inventory;
|
||||
using OpenSim.Framework.Utilities;
|
||||
using OpenSim.world;
|
||||
|
||||
@@ -6,7 +6,7 @@ using libsecondlife;
|
||||
using libsecondlife.Packets;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Physics.Manager;
|
||||
using OpenSim.Framework.Assets;
|
||||
using OpenSim.Framework.Types;
|
||||
|
||||
namespace OpenSim.world
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using libsecondlife;
|
||||
using libsecondlife.Packets;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Physics.Manager;
|
||||
using OpenSim.Framework.Assets;
|
||||
using OpenSim.Framework.Types;
|
||||
using OpenSim.Framework.Inventory;
|
||||
|
||||
namespace OpenSim.world
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenSim.world
|
||||
{
|
||||
public class ScriptEngine
|
||||
{
|
||||
public ScriptEngine(World env)
|
||||
{
|
||||
}
|
||||
|
||||
public void LoadScript()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenSim.world
|
||||
{
|
||||
public class SurfacePatch
|
||||
{
|
||||
public float[] HeightMap;
|
||||
|
||||
public SurfacePatch() {
|
||||
HeightMap = new float[16*16];
|
||||
|
||||
int xinc;
|
||||
int yinc;
|
||||
for(xinc=0; xinc<16; xinc++) for(yinc=0; yinc<16; yinc++) {
|
||||
HeightMap[xinc+(yinc*16)]=100.0f;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,11 +8,11 @@ using System.IO;
|
||||
using System.Threading;
|
||||
using OpenSim.Physics.Manager;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Framework.Assets;
|
||||
using OpenSim.Framework.Types;
|
||||
using OpenSim.Framework.Terrain;
|
||||
using OpenSim.Framework.Inventory;
|
||||
using OpenSim.Assets;
|
||||
using OpenSim.world.scripting;
|
||||
//using OpenSim.world.scripting;
|
||||
using OpenSim.RegionServer.world.scripting;
|
||||
using OpenSim.RegionServer.world.scripting.Scripts;
|
||||
using OpenSim.Terrain;
|
||||
@@ -25,7 +25,7 @@ namespace OpenSim.world
|
||||
public Dictionary<libsecondlife.LLUUID, Entity> Entities;
|
||||
public Dictionary<libsecondlife.LLUUID, Avatar> Avatars;
|
||||
public Dictionary<libsecondlife.LLUUID, Primitive> Prims;
|
||||
public ScriptEngine Scripts;
|
||||
//public ScriptEngine Scripts;
|
||||
public TerrainEngine Terrain; //TODO: Replace TerrainManager with this.
|
||||
public uint _localNumber = 0;
|
||||
private PhysicsScene phyScene;
|
||||
|
||||
@@ -5,7 +5,7 @@ using libsecondlife;
|
||||
using libsecondlife.Packets;
|
||||
using OpenSim.Physics.Manager;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Framework.Assets;
|
||||
using OpenSim.Framework.Types;
|
||||
using OpenSim.Framework.Terrain;
|
||||
using OpenSim.Framework.Inventory;
|
||||
using OpenSim.Assets;
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.IO;
|
||||
using System.Reflection;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Framework.Types;
|
||||
using libsecondlife;
|
||||
|
||||
namespace OpenSim.world
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenSim.world.scripting
|
||||
{
|
||||
public interface IScriptHost {
|
||||
bool Register(IScript iscript);
|
||||
}
|
||||
public interface IScript
|
||||
{
|
||||
string Name{get;set;}
|
||||
IScriptHost Host{get;set;}
|
||||
void Show();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user