* The 'Create' functions should be called to factor up a new, otherwise empty, but with the Id and 1-to-1 child fields instantiated and randomized.

* Added two shape constants that
afrisby
lbsa71 2007-12-11 13:30:08 +00:00
parent 16903ec488
commit ffd60baa48
3 changed files with 20 additions and 0 deletions

View File

@ -129,6 +129,12 @@ namespace OpenSim.Framework
TextureEntry = m_defaultTextureEntry;
}
public static PrimitiveBaseShape Create()
{
PrimitiveBaseShape shape = new PrimitiveBaseShape();
return shape;
}
//void returns need to change of course
public virtual void GetMesh()
{

View File

@ -774,6 +774,17 @@ namespace OpenSim.Region.Environment.Scenes
return LLUUID.Zero;
}
public static SceneObjectPart Create()
{
SceneObjectPart part = new SceneObjectPart();
part.UUID = LLUUID.Random();
PrimitiveBaseShape shape = PrimitiveBaseShape.Create();
part.Shape = shape;
return part;
}
#region Copying
/// <summary>
@ -1603,6 +1614,7 @@ namespace OpenSim.Region.Environment.Scenes
public TaskInventoryItem()
{
}
}
}
}

View File

@ -2040,6 +2040,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
public const int PRIM_FULLBRIGHT = 20;
public const int PRIM_FLEXIBLE = 21;
public const int PRIM_TEXGEN = 22;
public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake
public const int PRIM_POINT_LIGHT = 23; // Huh?
public const int PRIM_TEXGEN_DEFAULT = 0;
public const int PRIM_TEXGEN_PLANAR = 1;
public const int PRIM_TYPE_BOX = 0;