Start of replacing the old SceneObject/Primitive classes with the new versions.

PLEASE NOTE: that with this revision some prim related features may be broke for a while. (things like linking prims and the parcel prim count.)
Also this revision may not work on mono, but that will be fixed soon.
This commit is contained in:
MW
2007-08-09 17:54:22 +00:00
parent 4fbecd94b6
commit d451dddcd0
19 changed files with 301 additions and 233 deletions

View File

@@ -26,7 +26,7 @@ namespace OpenSim.Region.Scripting.Examples
void ProcessConsoleMsg(string[] args)
{
if (args[0].ToLower() == "lslexport")
/*if (args[0].ToLower() == "lslexport")
{
string sequence = "";
@@ -48,12 +48,12 @@ namespace OpenSim.Region.Scripting.Examples
}
System.Console.WriteLine(sequence);
}
}*/
}
string processPrimitiveToString(OpenSim.Region.Environment.Scenes.Primitive prim)
{
string desc = prim.Description;
/*string desc = prim.Description;
string name = prim.Name;
LLVector3 pos = prim.Pos;
LLQuaternion rot = new LLQuaternion(prim.Rotation.x, prim.Rotation.y, prim.Rotation.z, prim.Rotation.w);
@@ -65,6 +65,8 @@ namespace OpenSim.Region.Scripting.Examples
setPrimParams += "[PRIM_SCALE, " + scale.ToString() + ", PRIM_POS, " + rootPos.ToString() + ", PRIM_ROTATION, " + rot.ToString() + "]\n";
return setPrimParams;
*/
return "";
}
}
}

View File

@@ -40,7 +40,7 @@ namespace OpenSim.Region.Scripting
/// <summary>
/// The object our script is supposed to be in
/// </summary>
public SceneObject Task
public SceneObjectGroup Task
{
get { return Scene.Objects[ObjectID]; }
}
@@ -229,8 +229,8 @@ namespace OpenSim.Region.Scripting
public void osCreateLink(Key target, int parent)
{
if(Scene.Entities[target] is SceneObject)
Task.AddNewChildPrims((SceneObject)Scene.Entities[target]);
if(Scene.Entities[target] is SceneObjectGroup)
Task.LinkToGroup((SceneObjectGroup)Scene.Entities[target]);
return;
}