Update names of handler010 through handler019

to more appropriate names consistent with use.
0.6.0-stable
Charles Krinke 2008-03-02 20:29:59 +00:00
parent 9991955014
commit 30ebd15926
3 changed files with 85 additions and 85 deletions

View File

@ -55,8 +55,8 @@ namespace OpenSim.Framework
private AcknowledgeAgentCross handler007 = null; // OnAcknowledgeAgentCrossed;
private AcknowledgePrimCross handler008 = null; // OnAcknowledgePrimCrossed;
private CloseAgentConnection handler009 = null; // OnCloseAgentConnection;
private RegionUp handler010 = null; // OnRegionUp;
private ChildAgentUpdate handler011 = null; // OnChildAgentUpdate;
private RegionUp handlerRegionUp = null; // OnRegionUp;
private ChildAgentUpdate handlerChildAgentUpdate = null; // OnChildAgentUpdate;
public string debugRegionName = String.Empty;
@ -92,10 +92,10 @@ namespace OpenSim.Framework
public virtual bool TriggerRegionUp(RegionInfo region)
{
handler010 = OnRegionUp;
if (handler010 != null)
handlerRegionUp = OnRegionUp;
if (handlerRegionUp != null)
{
handler010(region);
handlerRegionUp(region);
return true;
}
return false;
@ -103,10 +103,10 @@ namespace OpenSim.Framework
public virtual bool TriggerChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
{
handler011 = OnChildAgentUpdate;
if (handler011 != null)
handlerChildAgentUpdate = OnChildAgentUpdate;
if (handlerChildAgentUpdate != null)
{
handler011(regionHandle, cAgentData);
handlerChildAgentUpdate(regionHandle, cAgentData);
return true;
}
return false;

View File

@ -131,16 +131,16 @@ namespace OpenSim.Region.ClientStack
private RezObject handler007 = null; //OnRezObject;
private GenericCall4 handler008 = null; //OnDeRezObject;
private ModifyTerrain handler009 = null;
private Action<IClientAPI> handler010 = null; //OnRegionHandShakeReply;
private GenericCall2 handler011 = null; //OnRequestWearables;
private Action<IClientAPI> handler012 = null; //OnRequestAvatarsData;
private SetAppearance handler013 = null; //OnSetAppearance;
private AvatarNowWearing handler014 = null; //OnAvatarNowWearing;
private RezSingleAttachmentFromInv handler015 = null; //OnRezSingleAttachmentFromInv;
private ObjectAttach handler016 = null; //OnObjectAttach;
private SetAlwaysRun handler017 = null; //OnSetAlwaysRun;
private GenericCall2 handler018 = null; //OnCompleteMovementToRegion;
private UpdateAgent handler019 = null; //OnAgentUpdate;
private Action<IClientAPI> handlerRegionHandShakeReply = null; //OnRegionHandShakeReply;
private GenericCall2 handlerRequestWearables = null; //OnRequestWearables;
private Action<IClientAPI> handlerRequestAvatarsData = null; //OnRequestAvatarsData;
private SetAppearance handlerSetAppearance = null; //OnSetAppearance;
private AvatarNowWearing handlerAvatarNowWearing = null; //OnAvatarNowWearing;
private RezSingleAttachmentFromInv handlerRezSingleAttachment = null; //OnRezSingleAttachmentFromInv;
private ObjectAttach handlerObjectAttach = null; //OnObjectAttach;
private SetAlwaysRun handlerSetAlwaysRun = null; //OnSetAlwaysRun;
private GenericCall2 handlerCompleteMovementToRegion = null; //OnCompleteMovementToRegion;
private UpdateAgent handlerAgentUpdate = null; //OnAgentUpdate;
private StartAnim handlerStartAnim = null;
private StopAnim handlerStopAnim = null;
private AgentRequestSit handlerAgentRequestSit = null; //OnAgentRequestSit;
@ -3042,27 +3042,27 @@ namespace OpenSim.Region.ClientStack
break;
case PacketType.RegionHandshakeReply:
handler010 = OnRegionHandShakeReply;
if (handler010 != null)
handlerRegionHandShakeReply = OnRegionHandShakeReply;
if (handlerRegionHandShakeReply != null)
{
handler010(this);
handlerRegionHandShakeReply(this);
}
break;
case PacketType.AgentWearablesRequest:
handler011 = OnRequestWearables;
handlerRequestWearables = OnRequestWearables;
if (handler011 != null)
if (handlerRequestWearables != null)
{
handler011();
handlerRequestWearables();
}
handler012 = OnRequestAvatarsData;
handlerRequestAvatarsData = OnRequestAvatarsData;
if (handler012 != null)
if (handlerRequestAvatarsData != null)
{
handler012(this);
handlerRequestAvatarsData(this);
}
@ -3070,10 +3070,10 @@ namespace OpenSim.Region.ClientStack
case PacketType.AgentSetAppearance:
AgentSetAppearancePacket appear = (AgentSetAppearancePacket)Pack;
handler013 = OnSetAppearance;
if (handler013 != null)
handlerSetAppearance = OnSetAppearance;
if (handlerSetAppearance != null)
{
handler013(appear.ObjectData.TextureEntry, appear.VisualParam);
handlerSetAppearance(appear.ObjectData.TextureEntry, appear.VisualParam);
}
break;
@ -3090,10 +3090,10 @@ namespace OpenSim.Region.ClientStack
wearingArgs.NowWearing.Add(wearable);
}
handler014 = OnAvatarNowWearing;
if (handler014 != null)
handlerAvatarNowWearing = OnAvatarNowWearing;
if (handlerAvatarNowWearing != null)
{
handler014(this, wearingArgs);
handlerAvatarNowWearing(this, wearingArgs);
}
@ -3101,11 +3101,11 @@ namespace OpenSim.Region.ClientStack
break;
case PacketType.RezSingleAttachmentFromInv:
handler015 = OnRezSingleAttachmentFromInv;
if (handler015 != null)
handlerRezSingleAttachment = OnRezSingleAttachmentFromInv;
if (handlerRezSingleAttachment != null)
{
RezSingleAttachmentFromInvPacket rez = (RezSingleAttachmentFromInvPacket)Pack;
handler015(this, rez.ObjectData.ItemID,
handlerRezSingleAttachment(this, rez.ObjectData.ItemID,
rez.ObjectData.AttachmentPt, rez.ObjectData.ItemFlags, rez.ObjectData.NextOwnerMask);
}
@ -3117,11 +3117,11 @@ namespace OpenSim.Region.ClientStack
{
ObjectAttachPacket att = (ObjectAttachPacket)Pack;
handler016 = OnObjectAttach;
handlerObjectAttach = OnObjectAttach;
if (handler016 != null)
if (handlerObjectAttach != null)
{
handler016(this, att.ObjectData[0].ObjectLocalID, att.AgentData.AttachmentPoint, att.ObjectData[0].Rotation);
handlerObjectAttach(this, att.ObjectData[0].ObjectLocalID, att.AgentData.AttachmentPoint, att.ObjectData[0].Rotation);
}
}
@ -3129,21 +3129,21 @@ namespace OpenSim.Region.ClientStack
case PacketType.SetAlwaysRun:
SetAlwaysRunPacket run = (SetAlwaysRunPacket)Pack;
handler017 = OnSetAlwaysRun;
if (handler017 != null)
handler017(this, run.AgentData.AlwaysRun);
handlerSetAlwaysRun = OnSetAlwaysRun;
if (handlerSetAlwaysRun != null)
handlerSetAlwaysRun(this, run.AgentData.AlwaysRun);
break;
case PacketType.CompleteAgentMovement:
handler018 = OnCompleteMovementToRegion;
if (handler018 != null)
handlerCompleteMovementToRegion = OnCompleteMovementToRegion;
if (handlerCompleteMovementToRegion != null)
{
handler018();
handlerCompleteMovementToRegion();
}
handler018 = null;
handlerCompleteMovementToRegion = null;
break;
case PacketType.AgentUpdate:
@ -3151,11 +3151,11 @@ namespace OpenSim.Region.ClientStack
{
AgentUpdatePacket agenUpdate = (AgentUpdatePacket)Pack;
handler019 = OnAgentUpdate;
if (handler019 != null)
handlerAgentUpdate = OnAgentUpdate;
if (handlerAgentUpdate != null)
OnAgentUpdate(this, agenUpdate);
handler019 = null;
handlerAgentUpdate = null;
//agenUpdate.AgentData.ControlFlags, agenUpdate.AgentData.BodyRotationa);
}
break;

View File

@ -173,15 +173,15 @@ namespace OpenSim.Region.Environment.Scenes
private OnNewPresenceDelegate handler007 = null; //OnNewPresence;
private OnRemovePresenceDelegate handler008 = null; //OnRemovePresence;
private OnBackupDelegate handler009 = null; //OnBackup;
private OnParcelPrimCountUpdateDelegate handler010 = null; //OnParcelPrimCountUpdate;
private MoneyTransferEvent handler011 = null; //OnMoneyTransfer;
private OnParcelPrimCountAddDelegate handler012 = null; //OnParcelPrimCountAdd;
private OnShutdownDelegate handler013 = null; //OnShutdown;
private ObjectGrabDelegate handler014 = null; //OnObjectGrab;
private NewRezScript handler015 = null; //OnRezScript;
private RemoveScript handler016 = null; //OnRemoveScript;
private SceneGroupMoved handler017 = null; //OnSceneGroupMove;
private SceneGroupGrabed handler018 = null; //OnSceneGroupGrab;
private OnParcelPrimCountUpdateDelegate handlerParcelPrimCountUpdate = null; //OnParcelPrimCountUpdate;
private MoneyTransferEvent handlerMoneyTransfer = null; //OnMoneyTransfer;
private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd;
private OnShutdownDelegate handlerShutdown = null; //OnShutdown;
private ObjectGrabDelegate handlerObjectGrab = null; //OnObjectGrab;
private NewRezScript handlerRezScript = null; //OnRezScript;
private RemoveScript handlerRemoveScript = null; //OnRemoveScript;
private SceneGroupMoved handlerSceneGroupMove = null; //OnSceneGroupMove;
private SceneGroupGrabed handlerSceneGroupGrab = null; //OnSceneGroupGrab;
private LandObjectAdded handlerLandObjectAdded = null; //OnLandObjectAdded;
private LandObjectRemoved handlerLandObjectRemoved = null; //OnLandObjectRemoved;
private AvatarEnteringNewParcel handlerAvatarEnteringNewParcel = null; //OnAvatarEnteringNewParcel;
@ -261,83 +261,83 @@ namespace OpenSim.Region.Environment.Scenes
public void TriggerParcelPrimCountUpdate()
{
handler010 = OnParcelPrimCountUpdate;
if (handler010 != null)
handlerParcelPrimCountUpdate = OnParcelPrimCountUpdate;
if (handlerParcelPrimCountUpdate != null)
{
handler010();
handlerParcelPrimCountUpdate();
}
}
public void TriggerMoneyTransfer(Object sender, MoneyTransferArgs e)
{
handler011 = OnMoneyTransfer;
if (handler011 != null)
handlerMoneyTransfer = OnMoneyTransfer;
if (handlerMoneyTransfer != null)
{
handler011(sender, e);
handlerMoneyTransfer(sender, e);
}
}
public void TriggerParcelPrimCountAdd(SceneObjectGroup obj)
{
handler012 = OnParcelPrimCountAdd;
if (handler012 != null)
handlerParcelPrimCountAdd = OnParcelPrimCountAdd;
if (handlerParcelPrimCountAdd != null)
{
handler012(obj);
handlerParcelPrimCountAdd(obj);
}
}
public void TriggerShutdown()
{
handler013 = OnShutdown;
if (handler013 != null)
handler013();
handlerShutdown = OnShutdown;
if (handlerShutdown != null)
handlerShutdown();
}
public void TriggerObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient)
{
handler014 = OnObjectGrab;
if (handler014 != null)
handlerObjectGrab = OnObjectGrab;
if (handlerObjectGrab != null)
{
handler014(localID, offsetPos, remoteClient);
handlerObjectGrab(localID, offsetPos, remoteClient);
}
}
public void TriggerRezScript(uint localID, LLUUID itemID, string script)
{
handler015 = OnRezScript;
if (handler015 != null)
handlerRezScript = OnRezScript;
if (handlerRezScript != null)
{
handler015(localID, itemID, script);
handlerRezScript(localID, itemID, script);
}
}
public void TriggerRemoveScript(uint localID, LLUUID itemID)
{
handler016 = OnRemoveScript;
if (handler016 != null)
handlerRemoveScript = OnRemoveScript;
if (handlerRemoveScript != null)
{
handler016(localID, itemID);
handlerRemoveScript(localID, itemID);
}
}
public bool TriggerGroupMove(LLUUID groupID, LLVector3 delta)
{
handler017 = OnSceneGroupMove;
handlerSceneGroupMove = OnSceneGroupMove;
if (handler017 != null)
if (handlerSceneGroupMove != null)
{
return handler017(groupID, delta);
return handlerSceneGroupMove(groupID, delta);
}
return true;
}
public void TriggerGroupGrab(LLUUID groupID, LLVector3 offset, LLUUID userID)
{
handler018 = OnSceneGroupGrab;
if (handler018 != null)
handlerSceneGroupGrab = OnSceneGroupGrab;
if (handlerSceneGroupGrab != null)
{
handler018(groupID, offset, userID);
handlerSceneGroupGrab(groupID, offset, userID);
}
}