mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
* ObjectAddPacket now confined to ClientView,´using PrimitiveBaseShape instead - w00t!
This commit is contained in:
@@ -413,26 +413,16 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
return myID;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="addPacket"></param>
|
||||
/// <param name="agentClient"></param>
|
||||
public void AddNewPrim(Packet addPacket, IClientAPI agentClient)
|
||||
{
|
||||
AddNewPrim((ObjectAddPacket)addPacket, agentClient.AgentId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="addPacket"></param>
|
||||
/// <param name="ownerID"></param>
|
||||
public void AddNewPrim(ObjectAddPacket addPacket, LLUUID ownerID)
|
||||
public void AddNewPrim(LLUUID ownerID, LLVector3 pos, PrimitiveBaseShape shape)
|
||||
{
|
||||
try
|
||||
{
|
||||
SceneObject sceneOb = new SceneObject(m_regionHandle, this, addPacket, ownerID, this.PrimIDAllocate());
|
||||
SceneObject sceneOb = new SceneObject(m_regionHandle, this, ownerID, this.PrimIDAllocate(), pos, shape);
|
||||
this.Entities.Add(sceneOb.rootUUID, sceneOb);
|
||||
|
||||
// Trigger event for listeners
|
||||
@@ -444,13 +434,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public override uint AddNewPrim(LLUUID ownerId, PrimData primData, LLVector3 pos, LLQuaternion rotation, LLUUID texture, int flags)
|
||||
{
|
||||
uint id = NextLocalId;
|
||||
|
||||
throw new NotImplementedException("Not implemented yet.");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Add/Remove Avatar Methods
|
||||
|
||||
Reference in New Issue
Block a user