mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
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:
@@ -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 "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user