Rename handler030 through handler038 with more
appropriate names consisten with their use.0.6.0-stable
parent
18a058eb84
commit
7a0e1a8c34
|
@ -151,16 +151,16 @@ namespace OpenSim.Region.ClientStack
|
||||||
private TeleportLocationRequest handler027 = null; //OnSetStartLocationRequest;
|
private TeleportLocationRequest handler027 = null; //OnSetStartLocationRequest;
|
||||||
private LinkObjects handler028 = null; //OnLinkObjects;
|
private LinkObjects handler028 = null; //OnLinkObjects;
|
||||||
private DelinkObjects handler029 = null; //OnDelinkObjects;
|
private DelinkObjects handler029 = null; //OnDelinkObjects;
|
||||||
private AddNewPrim handler030 = null; //OnAddPrim;
|
private AddNewPrim handlerAddPrim = null; //OnAddPrim;
|
||||||
private UpdateShape handler031 = null; //null;
|
private UpdateShape handlerUpdatePrimShape = null; //null;
|
||||||
private ObjectExtraParams handler032 = null; //OnUpdateExtraParams;
|
private ObjectExtraParams handlerUpdateExtraParams = null; //OnUpdateExtraParams;
|
||||||
private ObjectDuplicate handler033 = null;
|
private ObjectDuplicate handlerObjectDuplicate = null;
|
||||||
private ObjectSelect handler034 = null;
|
private ObjectSelect handlerObjectSelect = null;
|
||||||
private ObjectDeselect handler035 = null;
|
private ObjectDeselect handlerObjectDeselect = null;
|
||||||
private UpdatePrimFlags handler036 = null; //OnUpdatePrimFlags;
|
private UpdatePrimFlags handlerUpdatePrimFlags = null; //OnUpdatePrimFlags;
|
||||||
private UpdatePrimTexture handler037 = null;
|
private UpdatePrimTexture handlerUpdatePrimTexture = null;
|
||||||
private UpdateVector handler038 = null; //OnGrabObject;
|
private UpdateVector handlerGrabObject = null; //OnGrabObject;
|
||||||
private MoveObject handler039 = null; //OnGrabUpdate;
|
private MoveObject handlerGrabUpdate = null; //OnGrabUpdate;
|
||||||
private ObjectSelect handlerDeGrabObject = null; //OnDeGrabObject;
|
private ObjectSelect handlerDeGrabObject = null; //OnDeGrabObject;
|
||||||
private GenericCall7 handlerObjectDescription = null;
|
private GenericCall7 handlerObjectDescription = null;
|
||||||
private GenericCall7 handlerObjectName = null;
|
private GenericCall7 handlerObjectName = null;
|
||||||
|
@ -3315,20 +3315,20 @@ namespace OpenSim.Region.ClientStack
|
||||||
//RayEnd: <61.97724, 141.995, 92.58341>
|
//RayEnd: <61.97724, 141.995, 92.58341>
|
||||||
//RayTargetID: 00000000-0000-0000-0000-000000000000
|
//RayTargetID: 00000000-0000-0000-0000-000000000000
|
||||||
|
|
||||||
handler030 = OnAddPrim;
|
handlerAddPrim = OnAddPrim;
|
||||||
if (handler030 != null)
|
if (handlerAddPrim != null)
|
||||||
handler030(AgentId, addPacket.ObjectData.RayEnd, addPacket.ObjectData.Rotation, shape, addPacket.ObjectData.BypassRaycast, addPacket.ObjectData.RayStart, addPacket.ObjectData.RayTargetID, addPacket.ObjectData.RayEndIsIntersection);
|
handlerAddPrim(AgentId, addPacket.ObjectData.RayEnd, addPacket.ObjectData.Rotation, shape, addPacket.ObjectData.BypassRaycast, addPacket.ObjectData.RayStart, addPacket.ObjectData.RayTargetID, addPacket.ObjectData.RayEndIsIntersection);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PacketType.ObjectShape:
|
case PacketType.ObjectShape:
|
||||||
ObjectShapePacket shapePacket = (ObjectShapePacket)Pack;
|
ObjectShapePacket shapePacket = (ObjectShapePacket)Pack;
|
||||||
handler031 = null;
|
handlerUpdatePrimShape = null;
|
||||||
for (int i = 0; i < shapePacket.ObjectData.Length; i++)
|
for (int i = 0; i < shapePacket.ObjectData.Length; i++)
|
||||||
{
|
{
|
||||||
handler031 = OnUpdatePrimShape;
|
handlerUpdatePrimShape = OnUpdatePrimShape;
|
||||||
if (handler031 != null)
|
if (handlerUpdatePrimShape != null)
|
||||||
{
|
{
|
||||||
handler031(m_agentId, shapePacket.ObjectData[i].ObjectLocalID,
|
handlerUpdatePrimShape(m_agentId, shapePacket.ObjectData[i].ObjectLocalID,
|
||||||
shapePacket.ObjectData[i]);
|
shapePacket.ObjectData[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3336,10 +3336,10 @@ namespace OpenSim.Region.ClientStack
|
||||||
case PacketType.ObjectExtraParams:
|
case PacketType.ObjectExtraParams:
|
||||||
ObjectExtraParamsPacket extraPar = (ObjectExtraParamsPacket)Pack;
|
ObjectExtraParamsPacket extraPar = (ObjectExtraParamsPacket)Pack;
|
||||||
|
|
||||||
handler032 = OnUpdateExtraParams;
|
handlerUpdateExtraParams = OnUpdateExtraParams;
|
||||||
if (handler032 != null)
|
if (handlerUpdateExtraParams != null)
|
||||||
{
|
{
|
||||||
handler032(m_agentId, extraPar.ObjectData[0].ObjectLocalID,
|
handlerUpdateExtraParams(m_agentId, extraPar.ObjectData[0].ObjectLocalID,
|
||||||
extraPar.ObjectData[0].ParamType,
|
extraPar.ObjectData[0].ParamType,
|
||||||
extraPar.ObjectData[0].ParamInUse, extraPar.ObjectData[0].ParamData);
|
extraPar.ObjectData[0].ParamInUse, extraPar.ObjectData[0].ParamData);
|
||||||
}
|
}
|
||||||
|
@ -3348,14 +3348,14 @@ namespace OpenSim.Region.ClientStack
|
||||||
ObjectDuplicatePacket dupe = (ObjectDuplicatePacket)Pack;
|
ObjectDuplicatePacket dupe = (ObjectDuplicatePacket)Pack;
|
||||||
ObjectDuplicatePacket.AgentDataBlock AgentandGroupData = dupe.AgentData;
|
ObjectDuplicatePacket.AgentDataBlock AgentandGroupData = dupe.AgentData;
|
||||||
|
|
||||||
handler033 = null;
|
handlerObjectDuplicate = null;
|
||||||
|
|
||||||
for (int i = 0; i < dupe.ObjectData.Length; i++)
|
for (int i = 0; i < dupe.ObjectData.Length; i++)
|
||||||
{
|
{
|
||||||
handler033 = OnObjectDuplicate;
|
handlerObjectDuplicate = OnObjectDuplicate;
|
||||||
if (handler033 != null)
|
if (handlerObjectDuplicate != null)
|
||||||
{
|
{
|
||||||
handler033(dupe.ObjectData[i].ObjectLocalID, dupe.SharedData.Offset,
|
handlerObjectDuplicate(dupe.ObjectData[i].ObjectLocalID, dupe.SharedData.Offset,
|
||||||
dupe.SharedData.DuplicateFlags, AgentandGroupData.AgentID,
|
dupe.SharedData.DuplicateFlags, AgentandGroupData.AgentID,
|
||||||
AgentandGroupData.GroupID);
|
AgentandGroupData.GroupID);
|
||||||
}
|
}
|
||||||
|
@ -3366,26 +3366,26 @@ namespace OpenSim.Region.ClientStack
|
||||||
case PacketType.ObjectSelect:
|
case PacketType.ObjectSelect:
|
||||||
ObjectSelectPacket incomingselect = (ObjectSelectPacket)Pack;
|
ObjectSelectPacket incomingselect = (ObjectSelectPacket)Pack;
|
||||||
|
|
||||||
handler034 = null;
|
handlerObjectSelect = null;
|
||||||
|
|
||||||
for (int i = 0; i < incomingselect.ObjectData.Length; i++)
|
for (int i = 0; i < incomingselect.ObjectData.Length; i++)
|
||||||
{
|
{
|
||||||
handler034 = OnObjectSelect;
|
handlerObjectSelect = OnObjectSelect;
|
||||||
if (handler034 != null)
|
if (handlerObjectSelect != null)
|
||||||
{
|
{
|
||||||
handler034(incomingselect.ObjectData[i].ObjectLocalID, this);
|
handlerObjectSelect(incomingselect.ObjectData[i].ObjectLocalID, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PacketType.ObjectDeselect:
|
case PacketType.ObjectDeselect:
|
||||||
ObjectDeselectPacket incomingdeselect = (ObjectDeselectPacket)Pack;
|
ObjectDeselectPacket incomingdeselect = (ObjectDeselectPacket)Pack;
|
||||||
|
|
||||||
handler035 = null;
|
handlerObjectDeselect = null;
|
||||||
|
|
||||||
for (int i = 0; i < incomingdeselect.ObjectData.Length; i++)
|
for (int i = 0; i < incomingdeselect.ObjectData.Length; i++)
|
||||||
{
|
{
|
||||||
handler035 = OnObjectDeselect;
|
handlerObjectDeselect = OnObjectDeselect;
|
||||||
if (handler035 != null)
|
if (handlerObjectDeselect != null)
|
||||||
{
|
{
|
||||||
OnObjectDeselect(incomingdeselect.ObjectData[i].ObjectLocalID, this);
|
OnObjectDeselect(incomingdeselect.ObjectData[i].ObjectLocalID, this);
|
||||||
}
|
}
|
||||||
|
@ -3394,23 +3394,23 @@ namespace OpenSim.Region.ClientStack
|
||||||
case PacketType.ObjectFlagUpdate:
|
case PacketType.ObjectFlagUpdate:
|
||||||
ObjectFlagUpdatePacket flags = (ObjectFlagUpdatePacket)Pack;
|
ObjectFlagUpdatePacket flags = (ObjectFlagUpdatePacket)Pack;
|
||||||
|
|
||||||
handler036 = OnUpdatePrimFlags;
|
handlerUpdatePrimFlags = OnUpdatePrimFlags;
|
||||||
|
|
||||||
if (handler036 != null)
|
if (handlerUpdatePrimFlags != null)
|
||||||
{
|
{
|
||||||
handler036(flags.AgentData.ObjectLocalID, Pack, this);
|
handlerUpdatePrimFlags(flags.AgentData.ObjectLocalID, Pack, this);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PacketType.ObjectImage:
|
case PacketType.ObjectImage:
|
||||||
ObjectImagePacket imagePack = (ObjectImagePacket)Pack;
|
ObjectImagePacket imagePack = (ObjectImagePacket)Pack;
|
||||||
|
|
||||||
handler037 = null;
|
handlerUpdatePrimTexture = null;
|
||||||
for (int i = 0; i < imagePack.ObjectData.Length; i++)
|
for (int i = 0; i < imagePack.ObjectData.Length; i++)
|
||||||
{
|
{
|
||||||
handler037 = OnUpdatePrimTexture;
|
handlerUpdatePrimTexture = OnUpdatePrimTexture;
|
||||||
if (handler037 != null)
|
if (handlerUpdatePrimTexture != null)
|
||||||
{
|
{
|
||||||
handler037(imagePack.ObjectData[i].ObjectLocalID,
|
handlerUpdatePrimTexture(imagePack.ObjectData[i].ObjectLocalID,
|
||||||
imagePack.ObjectData[i].TextureEntry, this);
|
imagePack.ObjectData[i].TextureEntry, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3418,21 +3418,21 @@ namespace OpenSim.Region.ClientStack
|
||||||
case PacketType.ObjectGrab:
|
case PacketType.ObjectGrab:
|
||||||
ObjectGrabPacket grab = (ObjectGrabPacket)Pack;
|
ObjectGrabPacket grab = (ObjectGrabPacket)Pack;
|
||||||
|
|
||||||
handler038 = OnGrabObject;
|
handlerGrabObject = OnGrabObject;
|
||||||
|
|
||||||
if (handler038 != null)
|
if (handlerGrabObject != null)
|
||||||
{
|
{
|
||||||
handler038(grab.ObjectData.LocalID, grab.ObjectData.GrabOffset, this);
|
handlerGrabObject(grab.ObjectData.LocalID, grab.ObjectData.GrabOffset, this);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PacketType.ObjectGrabUpdate:
|
case PacketType.ObjectGrabUpdate:
|
||||||
ObjectGrabUpdatePacket grabUpdate = (ObjectGrabUpdatePacket)Pack;
|
ObjectGrabUpdatePacket grabUpdate = (ObjectGrabUpdatePacket)Pack;
|
||||||
|
|
||||||
handler039 = OnGrabUpdate;
|
handlerGrabUpdate = OnGrabUpdate;
|
||||||
|
|
||||||
if (handler039 != null)
|
if (handlerGrabUpdate != null)
|
||||||
{
|
{
|
||||||
handler039(grabUpdate.ObjectData.ObjectID, grabUpdate.ObjectData.GrabOffsetInitial,
|
handlerGrabUpdate(grabUpdate.ObjectData.ObjectID, grabUpdate.ObjectData.GrabOffsetInitial,
|
||||||
grabUpdate.ObjectData.GrabPosition, this);
|
grabUpdate.ObjectData.GrabPosition, this);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue