* minor: method documentation and miscellaneous tidy
parent
3b0db66b92
commit
41ad030a5a
|
@ -1021,14 +1021,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
public void ActivateGesture(UUID assetId, UUID gestureId)
|
public void ActivateGesture(UUID assetId, UUID gestureId)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeactivateGesture(UUID assetId, UUID gestureId)
|
public void DeactivateGesture(UUID assetId, UUID gestureId)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sound
|
// Sound
|
||||||
public void SoundTrigger(UUID soundId, UUID owerid, UUID Objectid,UUID ParentId,float Gain, Vector3 Position,UInt64 Handle)
|
public void SoundTrigger(UUID soundId, UUID owerid, UUID Objectid,UUID ParentId,float Gain, Vector3 Position,UInt64 Handle)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Scene/Avatar to Client
|
#region Scene/Avatar to Client
|
||||||
|
@ -2801,11 +2801,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
OutPacket(objPropFamilyPack, ThrottleOutPacketType.Task);
|
OutPacket(objPropFamilyPack, ThrottleOutPacketType.Task);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendObjectPropertiesReply(UUID ItemID, ulong CreationDate, UUID CreatorUUID, UUID FolderUUID, UUID FromTaskUUID,
|
public void SendObjectPropertiesReply(
|
||||||
UUID GroupUUID, short InventorySerial, UUID LastOwnerUUID, UUID ObjectUUID,
|
UUID ItemID, ulong CreationDate, UUID CreatorUUID, UUID FolderUUID, UUID FromTaskUUID,
|
||||||
UUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName,
|
UUID GroupUUID, short InventorySerial, UUID LastOwnerUUID, UUID ObjectUUID,
|
||||||
string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask,
|
UUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName,
|
||||||
uint BaseMask, byte saleType, int salePrice)
|
string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask,
|
||||||
|
uint BaseMask, byte saleType, int salePrice)
|
||||||
{
|
{
|
||||||
ObjectPropertiesPacket proper = (ObjectPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.ObjectProperties);
|
ObjectPropertiesPacket proper = (ObjectPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.ObjectProperties);
|
||||||
// TODO: don't create new blocks if recycling an old packet
|
// TODO: don't create new blocks if recycling an old packet
|
||||||
|
@ -4139,6 +4140,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
//there is a handler registered that handled this packet type
|
//there is a handler registered that handled this packet type
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Main packet processing conditional
|
// Main packet processing conditional
|
||||||
switch (Pack.Type)
|
switch (Pack.Type)
|
||||||
{
|
{
|
||||||
|
@ -4160,6 +4162,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PacketType.ChatFromViewer:
|
case PacketType.ChatFromViewer:
|
||||||
ChatFromViewerPacket inchatpack = (ChatFromViewerPacket)Pack;
|
ChatFromViewerPacket inchatpack = (ChatFromViewerPacket)Pack;
|
||||||
|
|
||||||
|
@ -4188,6 +4191,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
handlerChatFromClient(this, args);
|
handlerChatFromClient(this, args);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PacketType.AvatarPropertiesUpdate:
|
case PacketType.AvatarPropertiesUpdate:
|
||||||
AvatarPropertiesUpdatePacket Packet = (AvatarPropertiesUpdatePacket)Pack;
|
AvatarPropertiesUpdatePacket Packet = (AvatarPropertiesUpdatePacket)Pack;
|
||||||
|
|
||||||
|
@ -4226,6 +4230,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PacketType.ImprovedInstantMessage:
|
case PacketType.ImprovedInstantMessage:
|
||||||
ImprovedInstantMessagePacket msgpack = (ImprovedInstantMessagePacket)Pack;
|
ImprovedInstantMessagePacket msgpack = (ImprovedInstantMessagePacket)Pack;
|
||||||
string IMfromName = Util.FieldToString(msgpack.MessageBlock.FromAgentName);
|
string IMfromName = Util.FieldToString(msgpack.MessageBlock.FromAgentName);
|
||||||
|
@ -4309,7 +4314,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PacketType.DeRezObject:
|
case PacketType.DeRezObject:
|
||||||
DeRezObjectPacket DeRezPacket = (DeRezObjectPacket) Pack;
|
DeRezObjectPacket DeRezPacket = (DeRezObjectPacket) Pack;
|
||||||
handlerDeRezObject = OnDeRezObject;
|
handlerDeRezObject = OnDeRezObject;
|
||||||
if (handlerDeRezObject != null)
|
if (handlerDeRezObject != null)
|
||||||
|
|
|
@ -284,6 +284,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
{
|
{
|
||||||
part.Inventory.RemoveScriptInstance(item.ItemID);
|
part.Inventory.RemoveScriptInstance(item.ItemID);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update item with new asset
|
// Update item with new asset
|
||||||
item.AssetID = asset.FullID;
|
item.AssetID = asset.FullID;
|
||||||
group.UpdateInventoryItem(item);
|
group.UpdateInventoryItem(item);
|
||||||
|
@ -2050,21 +2051,21 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
RezSelected, RemoveItem, fromTaskID, false);
|
RezSelected, RemoveItem, fromTaskID, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns SceneObjectGroup or null from asset request.
|
/// Rez an object into the scene from the user's inventory
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="remoteClient"></param>
|
/// <param name="remoteClient"></param>
|
||||||
/// <param name="itemID"></param>
|
/// <param name="itemID"></param>
|
||||||
/// <param name="RayEnd"></param>
|
/// <param name="RayEnd"></param>
|
||||||
/// <param name="RayStart"></param>
|
/// <param name="RayStart"></param>
|
||||||
/// <param name="RayTargetID"></param>
|
/// <param name="RayTargetID"></param>
|
||||||
/// <param name="BypassRayCast"></param>
|
/// <param name="BypassRayCast"></param>
|
||||||
/// <param name="RayEndIsIntersection"></param>
|
/// <param name="RayEndIsIntersection"></param>
|
||||||
/// <param name="RezSelected"></param>
|
/// <param name="RezSelected"></param>
|
||||||
/// <param name="RemoveItem"></param>
|
/// <param name="RemoveItem"></param>
|
||||||
/// <param name="fromTaskID"></param>
|
/// <param name="fromTaskID"></param>
|
||||||
/// <param name="difference"></param>
|
/// <param name="attachment"></param>
|
||||||
/// <returns></returns>
|
/// <returns>The SceneObjectGroup rezzed or null if rez was unsuccessful.</returns>
|
||||||
public virtual SceneObjectGroup RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
public virtual SceneObjectGroup RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
||||||
|
@ -2141,7 +2142,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
if (attachment)
|
if (attachment)
|
||||||
isAttachment = " Object was an attachment";
|
isAttachment = " Object was an attachment";
|
||||||
|
|
||||||
m_log.Error("[OJECTREZ]: Error rezzing ItemID: " + itemID + " object has no rootpart." + isAttachment);
|
m_log.Error("[AGENT INVENTORY]: Error rezzing ItemID: " + itemID + " object has no rootpart." + isAttachment);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Since renaming the item in the inventory does not affect the name stored
|
// Since renaming the item in the inventory does not affect the name stored
|
||||||
|
@ -2200,11 +2201,12 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
group.ClearPartAttachmentData();
|
group.ClearPartAttachmentData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fire on_rez
|
|
||||||
if (!attachment)
|
if (!attachment)
|
||||||
{
|
{
|
||||||
|
// Fire on_rez
|
||||||
group.CreateScriptInstances(0, true, DefaultScriptEngine, 0);
|
group.CreateScriptInstances(0, true, DefaultScriptEngine, 0);
|
||||||
|
|
||||||
rootPart.ScheduleFullUpdate();
|
rootPart.ScheduleFullUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2230,14 +2232,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Rez an object in the scene
|
/// Rez an object into the scene from a prim's inventory.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="sourcePart"></param>
|
||||||
/// <param name="item"></param>
|
/// <param name="item"></param>
|
||||||
/// <param name="pos"></param>
|
/// <param name="pos"></param>
|
||||||
/// <param name="rot"></param>
|
/// <param name="rot"></param>
|
||||||
/// <param name="vel"></param>
|
/// <param name="vel"></param>
|
||||||
/// <param name="param"></param>
|
/// <param name="param"></param>
|
||||||
/// <returns></returns>
|
/// <returns>The SceneObjectGroup rezzed or null if rez was unsuccessful</returns>
|
||||||
public virtual SceneObjectGroup RezObject(
|
public virtual SceneObjectGroup RezObject(
|
||||||
SceneObjectPart sourcePart, TaskInventoryItem item,
|
SceneObjectPart sourcePart, TaskInventoryItem item,
|
||||||
Vector3 pos, Quaternion rot, Vector3 vel, int param)
|
Vector3 pos, Quaternion rot, Vector3 vel, int param)
|
||||||
|
@ -2338,6 +2341,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
DeRezObject(null, grp.RootPart.LocalId,
|
DeRezObject(null, grp.RootPart.LocalId,
|
||||||
grp.RootPart.GroupID, DeRezAction.Return, UUID.Zero);
|
grp.RootPart.GroupID, DeRezAction.Return, UUID.Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1602,13 +1602,14 @@ if (m_shape != null) {
|
||||||
|
|
||||||
public void GetProperties(IClientAPI client)
|
public void GetProperties(IClientAPI client)
|
||||||
{
|
{
|
||||||
client.SendObjectPropertiesReply(UUID.Zero, (ulong)_creationDate, _creatorID, UUID.Zero, UUID.Zero,
|
client.SendObjectPropertiesReply(
|
||||||
_groupID, (short)InventorySerial, _lastOwnerID, UUID, _ownerID,
|
UUID.Zero, (ulong)_creationDate, _creatorID, UUID.Zero, UUID.Zero,
|
||||||
ParentGroup.RootPart.TouchName, new byte[0], ParentGroup.RootPart.SitName, Name, Description,
|
_groupID, (short)InventorySerial, _lastOwnerID, UUID, _ownerID,
|
||||||
ParentGroup.RootPart._ownerMask, ParentGroup.RootPart._nextOwnerMask, ParentGroup.RootPart._groupMask, ParentGroup.RootPart._everyoneMask,
|
ParentGroup.RootPart.TouchName, new byte[0], ParentGroup.RootPart.SitName, Name, Description,
|
||||||
ParentGroup.RootPart._baseMask,
|
ParentGroup.RootPart._ownerMask, ParentGroup.RootPart._nextOwnerMask, ParentGroup.RootPart._groupMask, ParentGroup.RootPart._everyoneMask,
|
||||||
ParentGroup.RootPart.ObjectSaleType,
|
ParentGroup.RootPart._baseMask,
|
||||||
ParentGroup.RootPart.SalePrice);
|
ParentGroup.RootPart.ObjectSaleType,
|
||||||
|
ParentGroup.RootPart.SalePrice);
|
||||||
}
|
}
|
||||||
|
|
||||||
public UUID GetRootPartUUID()
|
public UUID GetRootPartUUID()
|
||||||
|
|
Loading…
Reference in New Issue