mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 13:15:44 +08:00
Change handler001 through handler009 to more
appropriate names consisten with their use. All done with all 94 handlers from handler001 through handler094. Hopefully we can move forward without numbered handlers.
This commit is contained in:
@@ -475,7 +475,7 @@ namespace OpenSim.Region.Capabilities
|
||||
public class AssetUploader
|
||||
{
|
||||
public event UpLoadedAsset OnUpLoad;
|
||||
private UpLoadedAsset handler001 = null;
|
||||
private UpLoadedAsset handlerUpLoad = null;
|
||||
|
||||
private string uploaderPath = String.Empty;
|
||||
private LLUUID newAssetID;
|
||||
@@ -529,10 +529,10 @@ namespace OpenSim.Region.Capabilities
|
||||
{
|
||||
SaveAssetToFile(m_assetName + ".jp2", data);
|
||||
}
|
||||
handler001 = OnUpLoad;
|
||||
if (handler001 != null)
|
||||
handlerUpLoad = OnUpLoad;
|
||||
if (handlerUpLoad != null)
|
||||
{
|
||||
handler001(m_assetName, m_assetDes, newAssetID, inv, parentFolder, data, m_invType, m_assetType);
|
||||
handlerUpLoad(m_assetName, m_assetDes, newAssetID, inv, parentFolder, data, m_invType, m_assetType);
|
||||
}
|
||||
|
||||
return res;
|
||||
@@ -569,7 +569,7 @@ namespace OpenSim.Region.Capabilities
|
||||
{
|
||||
public event UpdateItem OnUpLoad;
|
||||
|
||||
private UpdateItem handler001 = null;
|
||||
private UpdateItem handlerUpdateItem = null;
|
||||
|
||||
private string uploaderPath = String.Empty;
|
||||
private LLUUID inventoryItemID;
|
||||
@@ -598,10 +598,10 @@ namespace OpenSim.Region.Capabilities
|
||||
string res = String.Empty;
|
||||
LLSDAssetUploadComplete uploadComplete = new LLSDAssetUploadComplete();
|
||||
LLUUID assetID = LLUUID.Zero;
|
||||
handler001 = OnUpLoad;
|
||||
if (handler001 != null)
|
||||
handlerUpdateItem = OnUpLoad;
|
||||
if (handlerUpdateItem != null)
|
||||
{
|
||||
assetID = handler001(inv, data);
|
||||
assetID = handlerUpdateItem(inv, data);
|
||||
}
|
||||
|
||||
uploadComplete.new_asset = assetID.ToString();
|
||||
@@ -651,7 +651,7 @@ namespace OpenSim.Region.Capabilities
|
||||
{
|
||||
public event UpdateTaskScript OnUpLoad;
|
||||
|
||||
private UpdateTaskScript handler001 = null;
|
||||
private UpdateTaskScript handlerUpdateTaskScript = null;
|
||||
|
||||
private string uploaderPath = String.Empty;
|
||||
private LLUUID inventoryItemID;
|
||||
@@ -693,10 +693,10 @@ namespace OpenSim.Region.Capabilities
|
||||
string res = String.Empty;
|
||||
LLSDTaskInventoryUploadComplete uploadComplete = new LLSDTaskInventoryUploadComplete();
|
||||
|
||||
handler001 = OnUpLoad;
|
||||
if (handler001 != null)
|
||||
handlerUpdateTaskScript = OnUpLoad;
|
||||
if (handlerUpdateTaskScript != null)
|
||||
{
|
||||
handler001(inventoryItemID, primID, isScriptRunning, data);
|
||||
handlerUpdateTaskScript(inventoryItemID, primID, isScriptRunning, data);
|
||||
}
|
||||
|
||||
uploadComplete.item_id = inventoryItemID;
|
||||
|
||||
@@ -46,15 +46,15 @@ namespace OpenSim.Framework
|
||||
public event RegionUp OnRegionUp;
|
||||
public event ChildAgentUpdate OnChildAgentUpdate;
|
||||
|
||||
private ExpectUserDelegate handler001 = null; // OnExpectUser
|
||||
private ExpectPrimDelegate handler002 = null; // OnExpectPrim;
|
||||
private GenericCall2 handler003 = null; // OnExpectChildAgent;
|
||||
private AgentCrossing handler004 = null; // OnAvatarCrossingIntoRegion;
|
||||
private PrimCrossing handler005 = null; // OnPrimCrossingIntoRegion;
|
||||
private UpdateNeighbours handler006 = null; // OnNeighboursUpdate;
|
||||
private AcknowledgeAgentCross handler007 = null; // OnAcknowledgeAgentCrossed;
|
||||
private AcknowledgePrimCross handler008 = null; // OnAcknowledgePrimCrossed;
|
||||
private CloseAgentConnection handler009 = null; // OnCloseAgentConnection;
|
||||
private ExpectUserDelegate handlerExpectUser = null; // OnExpectUser
|
||||
private ExpectPrimDelegate handlerExpectPrim = null; // OnExpectPrim;
|
||||
private GenericCall2 handlerExpectChildAgent = null; // OnExpectChildAgent;
|
||||
private AgentCrossing handlerAvatarCrossingIntoRegion = null; // OnAvatarCrossingIntoRegion;
|
||||
private PrimCrossing handlerPrimCrossingIntoRegion = null; // OnPrimCrossingIntoRegion;
|
||||
private UpdateNeighbours handlerNeighboursUpdate = null; // OnNeighboursUpdate;
|
||||
private AcknowledgeAgentCross handlerAcknowledgeAgentCrossed = null; // OnAcknowledgeAgentCrossed;
|
||||
private AcknowledgePrimCross handlerAcknowledgePrimCrossed = null; // OnAcknowledgePrimCrossed;
|
||||
private CloseAgentConnection handlerCloseAgentConnection = null; // OnCloseAgentConnection;
|
||||
private RegionUp handlerRegionUp = null; // OnRegionUp;
|
||||
private ChildAgentUpdate handlerChildAgentUpdate = null; // OnChildAgentUpdate;
|
||||
|
||||
@@ -68,10 +68,10 @@ namespace OpenSim.Framework
|
||||
/// <returns></returns>
|
||||
public virtual bool TriggerExpectUser(ulong regionHandle, AgentCircuitData agent)
|
||||
{
|
||||
handler001 = OnExpectUser;
|
||||
if (handler001 != null)
|
||||
handlerExpectUser = OnExpectUser;
|
||||
if (handlerExpectUser != null)
|
||||
{
|
||||
handler001(regionHandle, agent);
|
||||
handlerExpectUser(regionHandle, agent);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -81,10 +81,10 @@ namespace OpenSim.Framework
|
||||
|
||||
public virtual bool TriggerExpectPrim(ulong regionHandle, LLUUID primID, string objData)
|
||||
{
|
||||
handler002 = OnExpectPrim;
|
||||
if (handler002 != null)
|
||||
handlerExpectPrim = OnExpectPrim;
|
||||
if (handlerExpectPrim != null)
|
||||
{
|
||||
handler002(regionHandle, primID, objData);
|
||||
handlerExpectPrim(regionHandle, primID, objData);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -115,10 +115,10 @@ namespace OpenSim.Framework
|
||||
public virtual bool TriggerExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position,
|
||||
bool isFlying)
|
||||
{
|
||||
handler004 = OnAvatarCrossingIntoRegion;
|
||||
if (handler004 != null)
|
||||
handlerAvatarCrossingIntoRegion = OnAvatarCrossingIntoRegion;
|
||||
if (handlerAvatarCrossingIntoRegion != null)
|
||||
{
|
||||
handler004(regionHandle, agentID, position, isFlying);
|
||||
handlerAvatarCrossingIntoRegion(regionHandle, agentID, position, isFlying);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -127,10 +127,10 @@ namespace OpenSim.Framework
|
||||
public virtual bool TriggerExpectPrimCrossing(ulong regionHandle, LLUUID primID, LLVector3 position,
|
||||
bool isPhysical)
|
||||
{
|
||||
handler005 = OnPrimCrossingIntoRegion;
|
||||
if (handler005 != null)
|
||||
handlerPrimCrossingIntoRegion = OnPrimCrossingIntoRegion;
|
||||
if (handlerPrimCrossingIntoRegion != null)
|
||||
{
|
||||
handler005(regionHandle, primID, position, isPhysical);
|
||||
handlerPrimCrossingIntoRegion(regionHandle, primID, position, isPhysical);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -138,10 +138,10 @@ namespace OpenSim.Framework
|
||||
|
||||
public virtual bool TriggerAcknowledgeAgentCrossed(ulong regionHandle, LLUUID agentID)
|
||||
{
|
||||
handler007 = OnAcknowledgeAgentCrossed;
|
||||
if (handler007 != null)
|
||||
handlerAcknowledgeAgentCrossed = OnAcknowledgeAgentCrossed;
|
||||
if (handlerAcknowledgeAgentCrossed != null)
|
||||
{
|
||||
handler007(regionHandle, agentID);
|
||||
handlerAcknowledgeAgentCrossed(regionHandle, agentID);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -149,10 +149,10 @@ namespace OpenSim.Framework
|
||||
|
||||
public virtual bool TriggerAcknowledgePrimCrossed(ulong regionHandle, LLUUID primID)
|
||||
{
|
||||
handler008 = OnAcknowledgePrimCrossed;
|
||||
if (handler008 != null)
|
||||
handlerAcknowledgePrimCrossed = OnAcknowledgePrimCrossed;
|
||||
if (handlerAcknowledgePrimCrossed != null)
|
||||
{
|
||||
handler008(regionHandle, primID);
|
||||
handlerAcknowledgePrimCrossed(regionHandle, primID);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -160,10 +160,10 @@ namespace OpenSim.Framework
|
||||
|
||||
public virtual bool TriggerCloseAgentConnection(ulong regionHandle, LLUUID agentID)
|
||||
{
|
||||
handler009 = OnCloseAgentConnection;
|
||||
if (handler009 != null)
|
||||
handlerCloseAgentConnection = OnCloseAgentConnection;
|
||||
if (handlerCloseAgentConnection != null)
|
||||
{
|
||||
handler009(regionHandle, agentID);
|
||||
handlerCloseAgentConnection(regionHandle, agentID);
|
||||
return true;
|
||||
|
||||
}
|
||||
@@ -177,10 +177,10 @@ namespace OpenSim.Framework
|
||||
/// <returns></returns>
|
||||
public virtual bool TriggerExpectChildAgent()
|
||||
{
|
||||
handler003 = OnExpectChildAgent;
|
||||
if (handler003 != null)
|
||||
handlerExpectChildAgent = OnExpectChildAgent;
|
||||
if (handlerExpectChildAgent != null)
|
||||
{
|
||||
handler003();
|
||||
handlerExpectChildAgent();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -195,10 +195,10 @@ namespace OpenSim.Framework
|
||||
/// <returns></returns>
|
||||
public virtual bool TriggerOnNeighboursUpdate(List<RegionInfo> neighbours)
|
||||
{
|
||||
handler006 = OnNeighboursUpdate;
|
||||
if (handler006 != null)
|
||||
handlerNeighboursUpdate = OnNeighboursUpdate;
|
||||
if (handlerNeighboursUpdate != null)
|
||||
{
|
||||
handler006(neighbours);
|
||||
handlerNeighboursUpdate(neighbours);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -207,9 +207,9 @@ namespace OpenSim.Framework
|
||||
|
||||
public bool TriggerTellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
|
||||
{
|
||||
handler009 = OnCloseAgentConnection;
|
||||
if (handler009 != null)
|
||||
return handler009(regionHandle, agentID);
|
||||
handlerCloseAgentConnection = OnCloseAgentConnection;
|
||||
if (handlerCloseAgentConnection != null)
|
||||
return handlerCloseAgentConnection(regionHandle, agentID);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user