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.0.6.0-stable
parent
dd8e728abd
commit
7794fc3766
|
@ -475,7 +475,7 @@ namespace OpenSim.Region.Capabilities
|
||||||
public class AssetUploader
|
public class AssetUploader
|
||||||
{
|
{
|
||||||
public event UpLoadedAsset OnUpLoad;
|
public event UpLoadedAsset OnUpLoad;
|
||||||
private UpLoadedAsset handler001 = null;
|
private UpLoadedAsset handlerUpLoad = null;
|
||||||
|
|
||||||
private string uploaderPath = String.Empty;
|
private string uploaderPath = String.Empty;
|
||||||
private LLUUID newAssetID;
|
private LLUUID newAssetID;
|
||||||
|
@ -529,10 +529,10 @@ namespace OpenSim.Region.Capabilities
|
||||||
{
|
{
|
||||||
SaveAssetToFile(m_assetName + ".jp2", data);
|
SaveAssetToFile(m_assetName + ".jp2", data);
|
||||||
}
|
}
|
||||||
handler001 = OnUpLoad;
|
handlerUpLoad = OnUpLoad;
|
||||||
if (handler001 != null)
|
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;
|
return res;
|
||||||
|
@ -569,7 +569,7 @@ namespace OpenSim.Region.Capabilities
|
||||||
{
|
{
|
||||||
public event UpdateItem OnUpLoad;
|
public event UpdateItem OnUpLoad;
|
||||||
|
|
||||||
private UpdateItem handler001 = null;
|
private UpdateItem handlerUpdateItem = null;
|
||||||
|
|
||||||
private string uploaderPath = String.Empty;
|
private string uploaderPath = String.Empty;
|
||||||
private LLUUID inventoryItemID;
|
private LLUUID inventoryItemID;
|
||||||
|
@ -598,10 +598,10 @@ namespace OpenSim.Region.Capabilities
|
||||||
string res = String.Empty;
|
string res = String.Empty;
|
||||||
LLSDAssetUploadComplete uploadComplete = new LLSDAssetUploadComplete();
|
LLSDAssetUploadComplete uploadComplete = new LLSDAssetUploadComplete();
|
||||||
LLUUID assetID = LLUUID.Zero;
|
LLUUID assetID = LLUUID.Zero;
|
||||||
handler001 = OnUpLoad;
|
handlerUpdateItem = OnUpLoad;
|
||||||
if (handler001 != null)
|
if (handlerUpdateItem != null)
|
||||||
{
|
{
|
||||||
assetID = handler001(inv, data);
|
assetID = handlerUpdateItem(inv, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadComplete.new_asset = assetID.ToString();
|
uploadComplete.new_asset = assetID.ToString();
|
||||||
|
@ -651,7 +651,7 @@ namespace OpenSim.Region.Capabilities
|
||||||
{
|
{
|
||||||
public event UpdateTaskScript OnUpLoad;
|
public event UpdateTaskScript OnUpLoad;
|
||||||
|
|
||||||
private UpdateTaskScript handler001 = null;
|
private UpdateTaskScript handlerUpdateTaskScript = null;
|
||||||
|
|
||||||
private string uploaderPath = String.Empty;
|
private string uploaderPath = String.Empty;
|
||||||
private LLUUID inventoryItemID;
|
private LLUUID inventoryItemID;
|
||||||
|
@ -693,10 +693,10 @@ namespace OpenSim.Region.Capabilities
|
||||||
string res = String.Empty;
|
string res = String.Empty;
|
||||||
LLSDTaskInventoryUploadComplete uploadComplete = new LLSDTaskInventoryUploadComplete();
|
LLSDTaskInventoryUploadComplete uploadComplete = new LLSDTaskInventoryUploadComplete();
|
||||||
|
|
||||||
handler001 = OnUpLoad;
|
handlerUpdateTaskScript = OnUpLoad;
|
||||||
if (handler001 != null)
|
if (handlerUpdateTaskScript != null)
|
||||||
{
|
{
|
||||||
handler001(inventoryItemID, primID, isScriptRunning, data);
|
handlerUpdateTaskScript(inventoryItemID, primID, isScriptRunning, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadComplete.item_id = inventoryItemID;
|
uploadComplete.item_id = inventoryItemID;
|
||||||
|
|
|
@ -46,15 +46,15 @@ namespace OpenSim.Framework
|
||||||
public event RegionUp OnRegionUp;
|
public event RegionUp OnRegionUp;
|
||||||
public event ChildAgentUpdate OnChildAgentUpdate;
|
public event ChildAgentUpdate OnChildAgentUpdate;
|
||||||
|
|
||||||
private ExpectUserDelegate handler001 = null; // OnExpectUser
|
private ExpectUserDelegate handlerExpectUser = null; // OnExpectUser
|
||||||
private ExpectPrimDelegate handler002 = null; // OnExpectPrim;
|
private ExpectPrimDelegate handlerExpectPrim = null; // OnExpectPrim;
|
||||||
private GenericCall2 handler003 = null; // OnExpectChildAgent;
|
private GenericCall2 handlerExpectChildAgent = null; // OnExpectChildAgent;
|
||||||
private AgentCrossing handler004 = null; // OnAvatarCrossingIntoRegion;
|
private AgentCrossing handlerAvatarCrossingIntoRegion = null; // OnAvatarCrossingIntoRegion;
|
||||||
private PrimCrossing handler005 = null; // OnPrimCrossingIntoRegion;
|
private PrimCrossing handlerPrimCrossingIntoRegion = null; // OnPrimCrossingIntoRegion;
|
||||||
private UpdateNeighbours handler006 = null; // OnNeighboursUpdate;
|
private UpdateNeighbours handlerNeighboursUpdate = null; // OnNeighboursUpdate;
|
||||||
private AcknowledgeAgentCross handler007 = null; // OnAcknowledgeAgentCrossed;
|
private AcknowledgeAgentCross handlerAcknowledgeAgentCrossed = null; // OnAcknowledgeAgentCrossed;
|
||||||
private AcknowledgePrimCross handler008 = null; // OnAcknowledgePrimCrossed;
|
private AcknowledgePrimCross handlerAcknowledgePrimCrossed = null; // OnAcknowledgePrimCrossed;
|
||||||
private CloseAgentConnection handler009 = null; // OnCloseAgentConnection;
|
private CloseAgentConnection handlerCloseAgentConnection = null; // OnCloseAgentConnection;
|
||||||
private RegionUp handlerRegionUp = null; // OnRegionUp;
|
private RegionUp handlerRegionUp = null; // OnRegionUp;
|
||||||
private ChildAgentUpdate handlerChildAgentUpdate = null; // OnChildAgentUpdate;
|
private ChildAgentUpdate handlerChildAgentUpdate = null; // OnChildAgentUpdate;
|
||||||
|
|
||||||
|
@ -68,10 +68,10 @@ namespace OpenSim.Framework
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public virtual bool TriggerExpectUser(ulong regionHandle, AgentCircuitData agent)
|
public virtual bool TriggerExpectUser(ulong regionHandle, AgentCircuitData agent)
|
||||||
{
|
{
|
||||||
handler001 = OnExpectUser;
|
handlerExpectUser = OnExpectUser;
|
||||||
if (handler001 != null)
|
if (handlerExpectUser != null)
|
||||||
{
|
{
|
||||||
handler001(regionHandle, agent);
|
handlerExpectUser(regionHandle, agent);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,10 +81,10 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public virtual bool TriggerExpectPrim(ulong regionHandle, LLUUID primID, string objData)
|
public virtual bool TriggerExpectPrim(ulong regionHandle, LLUUID primID, string objData)
|
||||||
{
|
{
|
||||||
handler002 = OnExpectPrim;
|
handlerExpectPrim = OnExpectPrim;
|
||||||
if (handler002 != null)
|
if (handlerExpectPrim != null)
|
||||||
{
|
{
|
||||||
handler002(regionHandle, primID, objData);
|
handlerExpectPrim(regionHandle, primID, objData);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -115,10 +115,10 @@ namespace OpenSim.Framework
|
||||||
public virtual bool TriggerExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position,
|
public virtual bool TriggerExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position,
|
||||||
bool isFlying)
|
bool isFlying)
|
||||||
{
|
{
|
||||||
handler004 = OnAvatarCrossingIntoRegion;
|
handlerAvatarCrossingIntoRegion = OnAvatarCrossingIntoRegion;
|
||||||
if (handler004 != null)
|
if (handlerAvatarCrossingIntoRegion != null)
|
||||||
{
|
{
|
||||||
handler004(regionHandle, agentID, position, isFlying);
|
handlerAvatarCrossingIntoRegion(regionHandle, agentID, position, isFlying);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -127,10 +127,10 @@ namespace OpenSim.Framework
|
||||||
public virtual bool TriggerExpectPrimCrossing(ulong regionHandle, LLUUID primID, LLVector3 position,
|
public virtual bool TriggerExpectPrimCrossing(ulong regionHandle, LLUUID primID, LLVector3 position,
|
||||||
bool isPhysical)
|
bool isPhysical)
|
||||||
{
|
{
|
||||||
handler005 = OnPrimCrossingIntoRegion;
|
handlerPrimCrossingIntoRegion = OnPrimCrossingIntoRegion;
|
||||||
if (handler005 != null)
|
if (handlerPrimCrossingIntoRegion != null)
|
||||||
{
|
{
|
||||||
handler005(regionHandle, primID, position, isPhysical);
|
handlerPrimCrossingIntoRegion(regionHandle, primID, position, isPhysical);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -138,10 +138,10 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public virtual bool TriggerAcknowledgeAgentCrossed(ulong regionHandle, LLUUID agentID)
|
public virtual bool TriggerAcknowledgeAgentCrossed(ulong regionHandle, LLUUID agentID)
|
||||||
{
|
{
|
||||||
handler007 = OnAcknowledgeAgentCrossed;
|
handlerAcknowledgeAgentCrossed = OnAcknowledgeAgentCrossed;
|
||||||
if (handler007 != null)
|
if (handlerAcknowledgeAgentCrossed != null)
|
||||||
{
|
{
|
||||||
handler007(regionHandle, agentID);
|
handlerAcknowledgeAgentCrossed(regionHandle, agentID);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -149,10 +149,10 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public virtual bool TriggerAcknowledgePrimCrossed(ulong regionHandle, LLUUID primID)
|
public virtual bool TriggerAcknowledgePrimCrossed(ulong regionHandle, LLUUID primID)
|
||||||
{
|
{
|
||||||
handler008 = OnAcknowledgePrimCrossed;
|
handlerAcknowledgePrimCrossed = OnAcknowledgePrimCrossed;
|
||||||
if (handler008 != null)
|
if (handlerAcknowledgePrimCrossed != null)
|
||||||
{
|
{
|
||||||
handler008(regionHandle, primID);
|
handlerAcknowledgePrimCrossed(regionHandle, primID);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -160,10 +160,10 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public virtual bool TriggerCloseAgentConnection(ulong regionHandle, LLUUID agentID)
|
public virtual bool TriggerCloseAgentConnection(ulong regionHandle, LLUUID agentID)
|
||||||
{
|
{
|
||||||
handler009 = OnCloseAgentConnection;
|
handlerCloseAgentConnection = OnCloseAgentConnection;
|
||||||
if (handler009 != null)
|
if (handlerCloseAgentConnection != null)
|
||||||
{
|
{
|
||||||
handler009(regionHandle, agentID);
|
handlerCloseAgentConnection(regionHandle, agentID);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -177,10 +177,10 @@ namespace OpenSim.Framework
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public virtual bool TriggerExpectChildAgent()
|
public virtual bool TriggerExpectChildAgent()
|
||||||
{
|
{
|
||||||
handler003 = OnExpectChildAgent;
|
handlerExpectChildAgent = OnExpectChildAgent;
|
||||||
if (handler003 != null)
|
if (handlerExpectChildAgent != null)
|
||||||
{
|
{
|
||||||
handler003();
|
handlerExpectChildAgent();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,10 +195,10 @@ namespace OpenSim.Framework
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public virtual bool TriggerOnNeighboursUpdate(List<RegionInfo> neighbours)
|
public virtual bool TriggerOnNeighboursUpdate(List<RegionInfo> neighbours)
|
||||||
{
|
{
|
||||||
handler006 = OnNeighboursUpdate;
|
handlerNeighboursUpdate = OnNeighboursUpdate;
|
||||||
if (handler006 != null)
|
if (handlerNeighboursUpdate != null)
|
||||||
{
|
{
|
||||||
handler006(neighbours);
|
handlerNeighboursUpdate(neighbours);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,9 +207,9 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public bool TriggerTellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
|
public bool TriggerTellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
|
||||||
{
|
{
|
||||||
handler009 = OnCloseAgentConnection;
|
handlerCloseAgentConnection = OnCloseAgentConnection;
|
||||||
if (handler009 != null)
|
if (handlerCloseAgentConnection != null)
|
||||||
return handler009(regionHandle, agentID);
|
return handlerCloseAgentConnection(regionHandle, agentID);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace OpenSim.Grid.UserServer
|
||||||
|
|
||||||
public event UserLoggedInAtLocation OnUserLoggedInAtLocation;
|
public event UserLoggedInAtLocation OnUserLoggedInAtLocation;
|
||||||
|
|
||||||
private UserLoggedInAtLocation handler001 = null;
|
private UserLoggedInAtLocation handlerUserLoggedInAtLocation = null;
|
||||||
|
|
||||||
public UserConfig m_config;
|
public UserConfig m_config;
|
||||||
|
|
||||||
|
@ -147,11 +147,11 @@ namespace OpenSim.Grid.UserServer
|
||||||
"[LOGIN]: XMLRPC request for {0} failed, fault code: {1}, reason: {2}",
|
"[LOGIN]: XMLRPC request for {0} failed, fault code: {1}, reason: {2}",
|
||||||
SimInfo.httpServerURI, GridResp.FaultCode, GridResp.FaultString);
|
SimInfo.httpServerURI, GridResp.FaultCode, GridResp.FaultString);
|
||||||
}
|
}
|
||||||
handler001 = OnUserLoggedInAtLocation;
|
handlerUserLoggedInAtLocation = OnUserLoggedInAtLocation;
|
||||||
if (handler001 != null)
|
if (handlerUserLoggedInAtLocation != null)
|
||||||
{
|
{
|
||||||
m_log.Info("[LOGIN]: Letting other objects know about login");
|
m_log.Info("[LOGIN]: Letting other objects know about login");
|
||||||
handler001(theUser.UUID, theUser.currentAgent.sessionID, theUser.currentAgent.currentRegion,
|
handlerUserLoggedInAtLocation(theUser.UUID, theUser.currentAgent.sessionID, theUser.currentAgent.currentRegion,
|
||||||
theUser.currentAgent.currentHandle, theUser.currentAgent.currentPos.X,theUser.currentAgent.currentPos.Y,theUser.currentAgent.currentPos.Z,
|
theUser.currentAgent.currentHandle, theUser.currentAgent.currentPos.X,theUser.currentAgent.currentPos.Y,theUser.currentAgent.currentPos.Z,
|
||||||
theUser.username,theUser.surname);
|
theUser.username,theUser.surname);
|
||||||
}
|
}
|
||||||
|
@ -226,11 +226,11 @@ namespace OpenSim.Grid.UserServer
|
||||||
// Send
|
// Send
|
||||||
XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams);
|
XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams);
|
||||||
XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000);
|
XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000);
|
||||||
handler001 = OnUserLoggedInAtLocation;
|
handlerUserLoggedInAtLocation = OnUserLoggedInAtLocation;
|
||||||
if (handler001 != null)
|
if (handlerUserLoggedInAtLocation != null)
|
||||||
{
|
{
|
||||||
m_log.Info("[LOGIN]: Letting other objects know about login");
|
m_log.Info("[LOGIN]: Letting other objects know about login");
|
||||||
handler001(theUser.UUID, theUser.currentAgent.sessionID, theUser.currentAgent.currentRegion,
|
handlerUserLoggedInAtLocation(theUser.UUID, theUser.currentAgent.sessionID, theUser.currentAgent.currentRegion,
|
||||||
theUser.currentAgent.currentHandle, theUser.currentAgent.currentPos.X, theUser.currentAgent.currentPos.Y, theUser.currentAgent.currentPos.Z,
|
theUser.currentAgent.currentHandle, theUser.currentAgent.currentPos.X, theUser.currentAgent.currentPos.Y, theUser.currentAgent.currentPos.Z,
|
||||||
theUser.username, theUser.surname);
|
theUser.username, theUser.surname);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace OpenSim.Grid.UserServer
|
||||||
{
|
{
|
||||||
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
public event logOffUser OnLogOffUser;
|
public event logOffUser OnLogOffUser;
|
||||||
private logOffUser handler001 = null;
|
private logOffUser handlerLogOffUser = null;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deletes an active agent session
|
/// Deletes an active agent session
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -331,9 +331,9 @@ namespace OpenSim.Grid.UserServer
|
||||||
float posy = (float)Convert.ToDecimal((string)requestData["region_pos_y"]);
|
float posy = (float)Convert.ToDecimal((string)requestData["region_pos_y"]);
|
||||||
float posz = (float)Convert.ToDecimal((string)requestData["region_pos_z"]);
|
float posz = (float)Convert.ToDecimal((string)requestData["region_pos_z"]);
|
||||||
|
|
||||||
handler001 = OnLogOffUser;
|
handlerLogOffUser = OnLogOffUser;
|
||||||
if (handler001 != null)
|
if (handlerLogOffUser != null)
|
||||||
handler001(userUUID);
|
handlerLogOffUser(userUUID);
|
||||||
|
|
||||||
LogOffUser(userUUID, RegionID, regionhandle, posx, posy, posz);
|
LogOffUser(userUUID, RegionID, regionhandle, posx, posy, posz);
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,15 +122,15 @@ namespace OpenSim.Region.ClientStack
|
||||||
/* Instantiated Designated Event Delegates */
|
/* Instantiated Designated Event Delegates */
|
||||||
//- used so we don't create new objects for each incoming packet and then toss it out later */
|
//- used so we don't create new objects for each incoming packet and then toss it out later */
|
||||||
|
|
||||||
private RequestAvatarProperties handler001 = null; //OnRequestAvatarProperties;
|
private RequestAvatarProperties handlerRequestAvatarProperties = null; //OnRequestAvatarProperties;
|
||||||
private ChatFromViewer handler002 = null; //OnChatFromViewer;
|
private ChatFromViewer handlerChatFromViewer = null; //OnChatFromViewer;
|
||||||
private ChatFromViewer handler003 = null; //OnChatFromViewer;
|
private ChatFromViewer handlerChatFromViewer2 = null; //OnChatFromViewer;
|
||||||
private ImprovedInstantMessage handler004 = null; //OnInstantMessage;
|
private ImprovedInstantMessage handlerInstantMessage = null; //OnInstantMessage;
|
||||||
private FriendActionDelegate handler005 = null; //OnApproveFriendRequest;
|
private FriendActionDelegate handlerApproveFriendRequest = null; //OnApproveFriendRequest;
|
||||||
private FriendshipTermination handler006 = null; //OnTerminateFriendship;
|
private FriendshipTermination handlerTerminateFriendship = null; //OnTerminateFriendship;
|
||||||
private RezObject handler007 = null; //OnRezObject;
|
private RezObject handlerRezObject = null; //OnRezObject;
|
||||||
private GenericCall4 handler008 = null; //OnDeRezObject;
|
private GenericCall4 handlerDeRezObject = null; //OnDeRezObject;
|
||||||
private ModifyTerrain handler009 = null;
|
private ModifyTerrain handlerModifyTerrain = null;
|
||||||
private Action<IClientAPI> handlerRegionHandShakeReply = null; //OnRegionHandShakeReply;
|
private Action<IClientAPI> handlerRegionHandShakeReply = null; //OnRegionHandShakeReply;
|
||||||
private GenericCall2 handlerRequestWearables = null; //OnRequestWearables;
|
private GenericCall2 handlerRequestWearables = null; //OnRequestWearables;
|
||||||
private Action<IClientAPI> handlerRequestAvatarsData = null; //OnRequestAvatarsData;
|
private Action<IClientAPI> handlerRequestAvatarsData = null; //OnRequestAvatarsData;
|
||||||
|
@ -2866,10 +2866,10 @@ namespace OpenSim.Region.ClientStack
|
||||||
case PacketType.AvatarPropertiesRequest:
|
case PacketType.AvatarPropertiesRequest:
|
||||||
AvatarPropertiesRequestPacket avatarProperties = (AvatarPropertiesRequestPacket)Pack;
|
AvatarPropertiesRequestPacket avatarProperties = (AvatarPropertiesRequestPacket)Pack;
|
||||||
|
|
||||||
handler001 = OnRequestAvatarProperties;
|
handlerRequestAvatarProperties = OnRequestAvatarProperties;
|
||||||
if (handler001 != null)
|
if (handlerRequestAvatarProperties != null)
|
||||||
{
|
{
|
||||||
handler001(this, avatarProperties.AgentData.AvatarID);
|
handlerRequestAvatarProperties(this, avatarProperties.AgentData.AvatarID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2897,9 +2897,9 @@ namespace OpenSim.Region.ClientStack
|
||||||
args.Scene = Scene;
|
args.Scene = Scene;
|
||||||
args.Sender = this;
|
args.Sender = this;
|
||||||
|
|
||||||
handler002 = OnChatFromViewer;
|
handlerChatFromViewer = OnChatFromViewer;
|
||||||
if (handler002 != null)
|
if (handlerChatFromViewer != null)
|
||||||
handler002(this, args);
|
handlerChatFromViewer(this, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2919,9 +2919,9 @@ namespace OpenSim.Region.ClientStack
|
||||||
args.Position = new LLVector3();
|
args.Position = new LLVector3();
|
||||||
args.Scene = Scene;
|
args.Scene = Scene;
|
||||||
args.Sender = this;
|
args.Sender = this;
|
||||||
handler003 = OnChatFromViewer;
|
handlerChatFromViewer2 = OnChatFromViewer;
|
||||||
if (handler003 != null)
|
if (handlerChatFromViewer2 != null)
|
||||||
handler003(this, args);
|
handlerChatFromViewer2(this, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -2929,11 +2929,11 @@ namespace OpenSim.Region.ClientStack
|
||||||
ImprovedInstantMessagePacket msgpack = (ImprovedInstantMessagePacket)Pack;
|
ImprovedInstantMessagePacket msgpack = (ImprovedInstantMessagePacket)Pack;
|
||||||
string IMfromName = Util.FieldToString(msgpack.MessageBlock.FromAgentName);
|
string IMfromName = Util.FieldToString(msgpack.MessageBlock.FromAgentName);
|
||||||
string IMmessage = Helpers.FieldToUTF8String(msgpack.MessageBlock.Message);
|
string IMmessage = Helpers.FieldToUTF8String(msgpack.MessageBlock.Message);
|
||||||
handler004 = OnInstantMessage;
|
handlerInstantMessage = OnInstantMessage;
|
||||||
|
|
||||||
if (handler004 != null)
|
if (handlerInstantMessage != null)
|
||||||
{
|
{
|
||||||
handler004(this, msgpack.AgentData.AgentID, msgpack.AgentData.SessionID,
|
handlerInstantMessage(this, msgpack.AgentData.AgentID, msgpack.AgentData.SessionID,
|
||||||
msgpack.MessageBlock.ToAgentID, msgpack.MessageBlock.ID,
|
msgpack.MessageBlock.ToAgentID, msgpack.MessageBlock.ID,
|
||||||
msgpack.MessageBlock.Timestamp, IMfromName, IMmessage,
|
msgpack.MessageBlock.Timestamp, IMfromName, IMmessage,
|
||||||
msgpack.MessageBlock.Dialog, msgpack.MessageBlock.FromGroup,
|
msgpack.MessageBlock.Dialog, msgpack.MessageBlock.FromGroup,
|
||||||
|
@ -2959,10 +2959,10 @@ namespace OpenSim.Region.ClientStack
|
||||||
callingCardFolders.Add(afriendpack.FolderData[fi].FolderID);
|
callingCardFolders.Add(afriendpack.FolderData[fi].FolderID);
|
||||||
}
|
}
|
||||||
|
|
||||||
handler005 = OnApproveFriendRequest;
|
handlerApproveFriendRequest = OnApproveFriendRequest;
|
||||||
if (handler005 != null)
|
if (handlerApproveFriendRequest != null)
|
||||||
{
|
{
|
||||||
handler005(this, agentID, transactionID, callingCardFolders);
|
handlerApproveFriendRequest(this, agentID, transactionID, callingCardFolders);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2974,10 +2974,10 @@ namespace OpenSim.Region.ClientStack
|
||||||
LLUUID listOwnerAgentID = tfriendpack.AgentData.AgentID;
|
LLUUID listOwnerAgentID = tfriendpack.AgentData.AgentID;
|
||||||
LLUUID exFriendID = tfriendpack.ExBlock.OtherID;
|
LLUUID exFriendID = tfriendpack.ExBlock.OtherID;
|
||||||
|
|
||||||
handler006 = OnTerminateFriendship;
|
handlerTerminateFriendship = OnTerminateFriendship;
|
||||||
if (handler006 != null)
|
if (handlerTerminateFriendship != null)
|
||||||
{
|
{
|
||||||
handler006(this, listOwnerAgentID, exFriendID);
|
handlerTerminateFriendship(this, listOwnerAgentID, exFriendID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2985,8 +2985,8 @@ namespace OpenSim.Region.ClientStack
|
||||||
case PacketType.RezObject:
|
case PacketType.RezObject:
|
||||||
RezObjectPacket rezPacket = (RezObjectPacket)Pack;
|
RezObjectPacket rezPacket = (RezObjectPacket)Pack;
|
||||||
|
|
||||||
handler007 = OnRezObject;
|
handlerRezObject = OnRezObject;
|
||||||
if (handler007 != null)
|
if (handlerRezObject != null)
|
||||||
{
|
{
|
||||||
//rezPacket.RezData.BypassRaycast;
|
//rezPacket.RezData.BypassRaycast;
|
||||||
//rezPacket.RezData.RayEnd;
|
//rezPacket.RezData.RayEnd;
|
||||||
|
@ -2998,7 +2998,7 @@ namespace OpenSim.Region.ClientStack
|
||||||
//rezPacket.RezData.FromTaskID;
|
//rezPacket.RezData.FromTaskID;
|
||||||
//m_log.Info("[REZData]: " + rezPacket.ToString());
|
//m_log.Info("[REZData]: " + rezPacket.ToString());
|
||||||
|
|
||||||
handler007(this, rezPacket.InventoryData.ItemID, rezPacket.RezData.RayEnd,
|
handlerRezObject(this, rezPacket.InventoryData.ItemID, rezPacket.RezData.RayEnd,
|
||||||
rezPacket.RezData.RayStart, rezPacket.RezData.RayTargetID,
|
rezPacket.RezData.RayStart, rezPacket.RezData.RayTargetID,
|
||||||
rezPacket.RezData.BypassRaycast, rezPacket.RezData.RayEndIsIntersection,
|
rezPacket.RezData.BypassRaycast, rezPacket.RezData.RayEndIsIntersection,
|
||||||
rezPacket.RezData.EveryoneMask, rezPacket.RezData.GroupMask,
|
rezPacket.RezData.EveryoneMask, rezPacket.RezData.GroupMask,
|
||||||
|
@ -3009,10 +3009,10 @@ namespace OpenSim.Region.ClientStack
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.DeRezObject:
|
case PacketType.DeRezObject:
|
||||||
handler008 = OnDeRezObject;
|
handlerDeRezObject = OnDeRezObject;
|
||||||
if (handler008 != null)
|
if (handlerDeRezObject != null)
|
||||||
{
|
{
|
||||||
handler008(Pack, this);
|
handlerDeRezObject(Pack, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -3026,10 +3026,10 @@ namespace OpenSim.Region.ClientStack
|
||||||
|
|
||||||
for (int i = 0; i < modify.ParcelData.Length; i++)
|
for (int i = 0; i < modify.ParcelData.Length; i++)
|
||||||
{
|
{
|
||||||
handler009 = OnModifyTerrain;
|
handlerModifyTerrain = OnModifyTerrain;
|
||||||
if (handler009 != null)
|
if (handlerModifyTerrain != null)
|
||||||
{
|
{
|
||||||
OnModifyTerrain(modify.ModifyBlock.Height, modify.ModifyBlock.Seconds,
|
handlerModifyTerrain(modify.ModifyBlock.Height, modify.ModifyBlock.Seconds,
|
||||||
modify.ModifyBlock.BrushSize,
|
modify.ModifyBlock.BrushSize,
|
||||||
modify.ModifyBlock.Action, modify.ParcelData[i].North,
|
modify.ModifyBlock.Action, modify.ParcelData[i].North,
|
||||||
modify.ParcelData[i].West, modify.ParcelData[i].South,
|
modify.ParcelData[i].West, modify.ParcelData[i].South,
|
||||||
|
|
|
@ -55,7 +55,7 @@ namespace OpenSim.Region.Communications.Local
|
||||||
|
|
||||||
public event LoginToRegionEvent OnLoginToRegion;
|
public event LoginToRegionEvent OnLoginToRegion;
|
||||||
|
|
||||||
private LoginToRegionEvent handler001 = null; // OnLoginToRegion;
|
private LoginToRegionEvent handlerLoginToRegion = null; // OnLoginToRegion;
|
||||||
|
|
||||||
public LocalLoginService(UserManagerBase userManager, string welcomeMess,
|
public LocalLoginService(UserManagerBase userManager, string welcomeMess,
|
||||||
CommunicationsLocal parent, NetworkServersInfo serversInfo,
|
CommunicationsLocal parent, NetworkServersInfo serversInfo,
|
||||||
|
@ -163,10 +163,10 @@ namespace OpenSim.Region.Communications.Local
|
||||||
_login.StartPos = new LLVector3(128, 128, 70);
|
_login.StartPos = new LLVector3(128, 128, 70);
|
||||||
_login.CapsPath = capsPath;
|
_login.CapsPath = capsPath;
|
||||||
|
|
||||||
handler001 = OnLoginToRegion;
|
handlerLoginToRegion = OnLoginToRegion;
|
||||||
if (handler001 != null)
|
if (handlerLoginToRegion != null)
|
||||||
{
|
{
|
||||||
handler001(currentRegion, _login);
|
handlerLoginToRegion(currentRegion, _login);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -59,13 +59,13 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
public event ChildAgentUpdate OnChildAgentUpdate;
|
public event ChildAgentUpdate OnChildAgentUpdate;
|
||||||
public event TellRegionToCloseChildConnection OnTellRegionToCloseChildConnection;
|
public event TellRegionToCloseChildConnection OnTellRegionToCloseChildConnection;
|
||||||
|
|
||||||
private InformRegionChild handler001 = null; // OnChildAgent;
|
private InformRegionChild handlerChildAgent = null; // OnChildAgent;
|
||||||
private ExpectArrival handler002 = null; // OnArrival;
|
private ExpectArrival handlerArrival = null; // OnArrival;
|
||||||
private InformRegionPrimGroup handler003 = null; // OnPrimGroupNear;
|
private InformRegionPrimGroup handlerPrimGroupNear = null; // OnPrimGroupNear;
|
||||||
private PrimGroupArrival handler004 = null; // OnPrimGroupArrival;
|
private PrimGroupArrival handlerPrimGroupArrival = null; // OnPrimGroupArrival;
|
||||||
private RegionUp handler005 = null; // OnRegionUp;
|
private RegionUp handlerRegionUp = null; // OnRegionUp;
|
||||||
private ChildAgentUpdate handler006 = null; // OnChildAgentUpdate;
|
private ChildAgentUpdate handlerChildAgentUpdate = null; // OnChildAgentUpdate;
|
||||||
private TellRegionToCloseChildConnection handler007 = null; // OnTellRegionToCloseChildConnection;
|
private TellRegionToCloseChildConnection handlerTellRegionToCloseChildConnection = null; // OnTellRegionToCloseChildConnection;
|
||||||
|
|
||||||
|
|
||||||
static InterRegionSingleton()
|
static InterRegionSingleton()
|
||||||
|
@ -83,70 +83,70 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
|
|
||||||
public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData)
|
public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData)
|
||||||
{
|
{
|
||||||
handler001 = OnChildAgent;
|
handlerChildAgent = OnChildAgent;
|
||||||
if (handler001 != null)
|
if (handlerChildAgent != null)
|
||||||
{
|
{
|
||||||
return handler001(regionHandle, agentData);
|
return handlerChildAgent(regionHandle, agentData);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool RegionUp(SearializableRegionInfo sregion, ulong regionhandle)
|
public bool RegionUp(SearializableRegionInfo sregion, ulong regionhandle)
|
||||||
{
|
{
|
||||||
handler005 = OnRegionUp;
|
handlerRegionUp = OnRegionUp;
|
||||||
if (handler005 != null)
|
if (handlerRegionUp != null)
|
||||||
{
|
{
|
||||||
return handler005(sregion, regionhandle);
|
return handlerRegionUp(sregion, regionhandle);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentUpdate)
|
public bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentUpdate)
|
||||||
{
|
{
|
||||||
handler006 = OnChildAgentUpdate;
|
handlerChildAgentUpdate = OnChildAgentUpdate;
|
||||||
if (handler006 != null)
|
if (handlerChildAgentUpdate != null)
|
||||||
{
|
{
|
||||||
return handler006(regionHandle, cAgentUpdate);
|
return handlerChildAgentUpdate(regionHandle, cAgentUpdate);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
|
public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
|
||||||
{
|
{
|
||||||
handler002 = OnArrival;
|
handlerArrival = OnArrival;
|
||||||
if (handler002 != null)
|
if (handlerArrival != null)
|
||||||
{
|
{
|
||||||
return handler002(regionHandle, agentID, position, isFlying);
|
return handlerArrival(regionHandle, agentID, position, isFlying);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool InformRegionPrim(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical)
|
public bool InformRegionPrim(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical)
|
||||||
{
|
{
|
||||||
handler003 = OnPrimGroupNear;
|
handlerPrimGroupNear = OnPrimGroupNear;
|
||||||
if (handler003 != null)
|
if (handlerPrimGroupNear != null)
|
||||||
{
|
{
|
||||||
return handler003(regionHandle, primID, position, isPhysical);
|
return handlerPrimGroupNear(regionHandle, primID, position, isPhysical);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ExpectPrimCrossing(ulong regionHandle, LLUUID primID, string objData)
|
public bool ExpectPrimCrossing(ulong regionHandle, LLUUID primID, string objData)
|
||||||
{
|
{
|
||||||
handler004 = OnPrimGroupArrival;
|
handlerPrimGroupArrival = OnPrimGroupArrival;
|
||||||
if (handler004 != null)
|
if (handlerPrimGroupArrival != null)
|
||||||
{
|
{
|
||||||
return handler004(regionHandle, primID, objData);
|
return handlerPrimGroupArrival(regionHandle, primID, objData);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool TellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
|
public bool TellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
|
||||||
{
|
{
|
||||||
handler007 = OnTellRegionToCloseChildConnection;
|
handlerTellRegionToCloseChildConnection = OnTellRegionToCloseChildConnection;
|
||||||
if (handler007 != null)
|
if (handlerTellRegionToCloseChildConnection != null)
|
||||||
{
|
{
|
||||||
return handler007(regionHandle, agentID);
|
return handlerTellRegionToCloseChildConnection(regionHandle, agentID);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
#region Events
|
#region Events
|
||||||
|
|
||||||
public event PhysicsCrash UnRecoverableError;
|
public event PhysicsCrash UnRecoverableError;
|
||||||
private PhysicsCrash handler001 = null;
|
private PhysicsCrash handlerPhysicsCrash = null;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -716,10 +716,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
public void physicsBasedCrash()
|
public void physicsBasedCrash()
|
||||||
{
|
{
|
||||||
handler001 = UnRecoverableError;
|
handlerPhysicsCrash = UnRecoverableError;
|
||||||
if (handler001 != null)
|
if (handlerPhysicsCrash != null)
|
||||||
{
|
{
|
||||||
handler001();
|
handlerPhysicsCrash();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -160,9 +160,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
public virtual void Restart(int seconds)
|
public virtual void Restart(int seconds)
|
||||||
{
|
{
|
||||||
m_log.Error("[REGION]: passing Restart Message up the namespace");
|
m_log.Error("[REGION]: passing Restart Message up the namespace");
|
||||||
restart handler001 = OnRestart;
|
restart handlerPhysicsCrash = OnRestart;
|
||||||
if (handler001 != null)
|
if (handlerPhysicsCrash != null)
|
||||||
handler001(RegionInfo);
|
handlerPhysicsCrash(RegionInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual bool PresenceChildStatus(LLUUID avatarID)
|
public virtual bool PresenceChildStatus(LLUUID avatarID)
|
||||||
|
|
|
@ -58,14 +58,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
public event ChildAgentUpdate OnChildAgentUpdate;
|
public event ChildAgentUpdate OnChildAgentUpdate;
|
||||||
public event RemoveKnownRegionsFromAvatarList OnRemoveKnownRegionFromAvatar;
|
public event RemoveKnownRegionsFromAvatarList OnRemoveKnownRegionFromAvatar;
|
||||||
|
|
||||||
private AgentCrossing handler001 = null; // OnAvatarCrossingIntoRegion;
|
private AgentCrossing handlerAvatarCrossingIntoRegion = null; // OnAvatarCrossingIntoRegion;
|
||||||
private ExpectUserDelegate handler002 = null; // OnExpectUser;
|
private ExpectUserDelegate handlerExpectUser = null; // OnExpectUser;
|
||||||
private ExpectPrimDelegate handler003 = null; // OnExpectPrim;
|
private ExpectPrimDelegate handlerExpectPrim = null; // OnExpectPrim;
|
||||||
private CloseAgentConnection handler004 = null; // OnCloseAgentConnection;
|
private CloseAgentConnection handlerCloseAgentConnection = null; // OnCloseAgentConnection;
|
||||||
private PrimCrossing handler005 = null; // OnPrimCrossingIntoRegion;
|
private PrimCrossing handlerPrimCrossingIntoRegion = null; // OnPrimCrossingIntoRegion;
|
||||||
private RegionUp handler006 = null; // OnRegionUp;
|
private RegionUp handlerRegionUp = null; // OnRegionUp;
|
||||||
private ChildAgentUpdate handler007 = null; // OnChildAgentUpdate;
|
private ChildAgentUpdate handlerChildAgentUpdate = null; // OnChildAgentUpdate;
|
||||||
private RemoveKnownRegionsFromAvatarList handler008 = null; // OnRemoveKnownRegionFromAvatar;
|
private RemoveKnownRegionsFromAvatarList handlerRemoveKnownRegionFromAvatar = null; // OnRemoveKnownRegionFromAvatar;
|
||||||
|
|
||||||
public KillObjectDelegate KillObject;
|
public KillObjectDelegate KillObject;
|
||||||
public string _debugRegionName = String.Empty;
|
public string _debugRegionName = String.Empty;
|
||||||
|
@ -132,30 +132,30 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
///
|
///
|
||||||
protected void NewUserConnection(ulong regionHandle, AgentCircuitData agent)
|
protected void NewUserConnection(ulong regionHandle, AgentCircuitData agent)
|
||||||
{
|
{
|
||||||
handler002 = OnExpectUser;
|
handlerExpectUser = OnExpectUser;
|
||||||
if (handler002 != null)
|
if (handlerExpectUser != null)
|
||||||
{
|
{
|
||||||
//m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: OnExpectUser Fired for User:" + agent.firstname + " " + agent.lastname);
|
//m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: OnExpectUser Fired for User:" + agent.firstname + " " + agent.lastname);
|
||||||
handler002(regionHandle, agent);
|
handlerExpectUser(regionHandle, agent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected bool newRegionUp(RegionInfo region)
|
protected bool newRegionUp(RegionInfo region)
|
||||||
{
|
{
|
||||||
handler006 = OnRegionUp;
|
handlerRegionUp = OnRegionUp;
|
||||||
if (handler006 != null)
|
if (handlerRegionUp != null)
|
||||||
{
|
{
|
||||||
//m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: newRegionUp Fired for User:" + region.RegionName);
|
//m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: newRegionUp Fired for User:" + region.RegionName);
|
||||||
handler006(region);
|
handlerRegionUp(region);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
|
protected bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
|
||||||
{
|
{
|
||||||
handler007 = OnChildAgentUpdate;
|
handlerChildAgentUpdate = OnChildAgentUpdate;
|
||||||
if (handler007 != null)
|
if (handlerChildAgentUpdate != null)
|
||||||
handler007(regionHandle, cAgentData);
|
handlerChildAgentUpdate(regionHandle, cAgentData);
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -163,39 +163,39 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
protected void AgentCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
|
protected void AgentCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
|
||||||
{
|
{
|
||||||
handler001 = OnAvatarCrossingIntoRegion;
|
handlerAvatarCrossingIntoRegion = OnAvatarCrossingIntoRegion;
|
||||||
if (handler001 != null)
|
if (handlerAvatarCrossingIntoRegion != null)
|
||||||
{
|
{
|
||||||
handler001(regionHandle, agentID, position, isFlying);
|
handlerAvatarCrossingIntoRegion(regionHandle, agentID, position, isFlying);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void IncomingPrimCrossing(ulong regionHandle, LLUUID primID, String objXMLData)
|
protected void IncomingPrimCrossing(ulong regionHandle, LLUUID primID, String objXMLData)
|
||||||
{
|
{
|
||||||
handler003 = OnExpectPrim;
|
handlerExpectPrim = OnExpectPrim;
|
||||||
if (handler003 != null)
|
if (handlerExpectPrim != null)
|
||||||
{
|
{
|
||||||
handler003(regionHandle, primID, objXMLData);
|
handlerExpectPrim(regionHandle, primID, objXMLData);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void PrimCrossing(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical)
|
protected void PrimCrossing(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical)
|
||||||
{
|
{
|
||||||
handler005 = OnPrimCrossingIntoRegion;
|
handlerPrimCrossingIntoRegion = OnPrimCrossingIntoRegion;
|
||||||
if (handler005 != null)
|
if (handlerPrimCrossingIntoRegion != null)
|
||||||
{
|
{
|
||||||
handler005(regionHandle, primID, position, isPhysical);
|
handlerPrimCrossingIntoRegion(regionHandle, primID, position, isPhysical);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected bool CloseConnection(ulong regionHandle, LLUUID agentID)
|
protected bool CloseConnection(ulong regionHandle, LLUUID agentID)
|
||||||
{
|
{
|
||||||
m_log.Info("[INTERREGION]: Incoming Agent Close Request for agent: " + agentID.ToString());
|
m_log.Info("[INTERREGION]: Incoming Agent Close Request for agent: " + agentID.ToString());
|
||||||
handler004 = OnCloseAgentConnection;
|
handlerCloseAgentConnection = OnCloseAgentConnection;
|
||||||
if (handler004 != null)
|
if (handlerCloseAgentConnection != null)
|
||||||
{
|
{
|
||||||
return handler004(regionHandle, agentID);
|
return handlerCloseAgentConnection(regionHandle, agentID);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -437,10 +437,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
// We remove the list of known regions from the agent's known region list through an event
|
// We remove the list of known regions from the agent's known region list through an event
|
||||||
// to scene, because, if an agent logged of, it's likely that there will be no scene presence
|
// to scene, because, if an agent logged of, it's likely that there will be no scene presence
|
||||||
// by the time we get to this part of the method.
|
// by the time we get to this part of the method.
|
||||||
handler008 = OnRemoveKnownRegionFromAvatar;
|
handlerRemoveKnownRegionFromAvatar = OnRemoveKnownRegionFromAvatar;
|
||||||
if (handler008 != null)
|
if (handlerRemoveKnownRegionFromAvatar != null)
|
||||||
{
|
{
|
||||||
handler008(agentID, regionlst);
|
handlerRemoveKnownRegionFromAvatar(agentID, regionlst);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -164,15 +164,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
/* Designated Event Deletage Instances */
|
/* Designated Event Deletage Instances */
|
||||||
|
|
||||||
private ScriptChangedEvent handler001 = null; //OnScriptChangedEvent;
|
private ScriptChangedEvent handlerScriptChangedEvent = null; //OnScriptChangedEvent;
|
||||||
private ClientMovement handler002 = null; //OnClientMovement;
|
private ClientMovement handlerClientMovement = null; //OnClientMovement;
|
||||||
private OnPermissionErrorDelegate handler003 = null; //OnPermissionError;
|
private OnPermissionErrorDelegate handlerPermissionError = null; //OnPermissionError;
|
||||||
private OnPluginConsoleDelegate handler004 = null; //OnPluginConsole;
|
private OnPluginConsoleDelegate handlerPluginConsole = null; //OnPluginConsole;
|
||||||
private OnFrameDelegate handler005 = null; //OnFrame;
|
private OnFrameDelegate handlerFrame = null; //OnFrame;
|
||||||
private OnNewClientDelegate handler006 = null; //OnNewClient;
|
private OnNewClientDelegate handlerNewClient = null; //OnNewClient;
|
||||||
private OnNewPresenceDelegate handler007 = null; //OnNewPresence;
|
private OnNewPresenceDelegate handlerNewPresence = null; //OnNewPresence;
|
||||||
private OnRemovePresenceDelegate handler008 = null; //OnRemovePresence;
|
private OnRemovePresenceDelegate handlerRemovePresence = null; //OnRemovePresence;
|
||||||
private OnBackupDelegate handler009 = null; //OnBackup;
|
private OnBackupDelegate handlerBackup = null; //OnBackup;
|
||||||
private OnParcelPrimCountUpdateDelegate handlerParcelPrimCountUpdate = null; //OnParcelPrimCountUpdate;
|
private OnParcelPrimCountUpdateDelegate handlerParcelPrimCountUpdate = null; //OnParcelPrimCountUpdate;
|
||||||
private MoneyTransferEvent handlerMoneyTransfer = null; //OnMoneyTransfer;
|
private MoneyTransferEvent handlerMoneyTransfer = null; //OnMoneyTransfer;
|
||||||
private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd;
|
private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd;
|
||||||
|
@ -192,70 +192,70 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
public void TriggerOnScriptChangedEvent(uint localID, uint change)
|
public void TriggerOnScriptChangedEvent(uint localID, uint change)
|
||||||
{
|
{
|
||||||
handler001 = OnScriptChangedEvent;
|
handlerScriptChangedEvent = OnScriptChangedEvent;
|
||||||
if (handler001 != null)
|
if (handlerScriptChangedEvent != null)
|
||||||
handler001(localID, change);
|
handlerScriptChangedEvent(localID, change);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerOnClientMovement(ScenePresence avatar)
|
public void TriggerOnClientMovement(ScenePresence avatar)
|
||||||
{
|
{
|
||||||
handler002 = OnClientMovement;
|
handlerClientMovement = OnClientMovement;
|
||||||
if (handler002 != null)
|
if (handlerClientMovement != null)
|
||||||
handler002(avatar);
|
handlerClientMovement(avatar);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerPermissionError(LLUUID user, string reason)
|
public void TriggerPermissionError(LLUUID user, string reason)
|
||||||
{
|
{
|
||||||
handler003 = OnPermissionError;
|
handlerPermissionError = OnPermissionError;
|
||||||
if (handler003 != null)
|
if (handlerPermissionError != null)
|
||||||
handler003(user, reason);
|
handlerPermissionError(user, reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerOnPluginConsole(string[] args)
|
public void TriggerOnPluginConsole(string[] args)
|
||||||
{
|
{
|
||||||
handler004 = OnPluginConsole;
|
handlerPluginConsole = OnPluginConsole;
|
||||||
if (handler004 != null)
|
if (handlerPluginConsole != null)
|
||||||
handler004(args);
|
handlerPluginConsole(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerOnFrame()
|
public void TriggerOnFrame()
|
||||||
{
|
{
|
||||||
handler005 = OnFrame;
|
handlerFrame = OnFrame;
|
||||||
if (handler005 != null)
|
if (handlerFrame != null)
|
||||||
{
|
{
|
||||||
handler005();
|
handlerFrame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerOnNewClient(IClientAPI client)
|
public void TriggerOnNewClient(IClientAPI client)
|
||||||
{
|
{
|
||||||
handler006 = OnNewClient;
|
handlerNewClient = OnNewClient;
|
||||||
if (handler006 != null)
|
if (handlerNewClient != null)
|
||||||
handler006(client);
|
handlerNewClient(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerOnNewPresence(ScenePresence presence)
|
public void TriggerOnNewPresence(ScenePresence presence)
|
||||||
{
|
{
|
||||||
handler007 = OnNewPresence;
|
handlerNewPresence = OnNewPresence;
|
||||||
if (handler007 != null)
|
if (handlerNewPresence != null)
|
||||||
handler007(presence);
|
handlerNewPresence(presence);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerOnRemovePresence(LLUUID agentId)
|
public void TriggerOnRemovePresence(LLUUID agentId)
|
||||||
{
|
{
|
||||||
handler008 = OnRemovePresence;
|
handlerRemovePresence = OnRemovePresence;
|
||||||
if (handler008 != null)
|
if (handlerRemovePresence != null)
|
||||||
{
|
{
|
||||||
handler008(agentId);
|
handlerRemovePresence(agentId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerOnBackup(IRegionDataStore dstore)
|
public void TriggerOnBackup(IRegionDataStore dstore)
|
||||||
{
|
{
|
||||||
handler009 = OnBackup;
|
handlerBackup = OnBackup;
|
||||||
if (handler009 != null)
|
if (handlerBackup != null)
|
||||||
{
|
{
|
||||||
handler009(dstore);
|
handlerBackup(dstore);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
protected ulong m_regionHandle;
|
protected ulong m_regionHandle;
|
||||||
|
|
||||||
public event PrimCountTaintedDelegate OnPrimCountTainted;
|
public event PrimCountTaintedDelegate OnPrimCountTainted;
|
||||||
private PrimCountTaintedDelegate handler001 = null;
|
private PrimCountTaintedDelegate handlerPrimCountTainted = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Signal whether the non-inventory attributes of any prims in the group have changed
|
/// Signal whether the non-inventory attributes of any prims in the group have changed
|
||||||
|
@ -1534,10 +1534,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void TriggerTainted()
|
public void TriggerTainted()
|
||||||
{
|
{
|
||||||
handler001 = OnPrimCountTainted;
|
handlerPrimCountTainted = OnPrimCountTainted;
|
||||||
if (handler001 != null)
|
if (handlerPrimCountTainted != null)
|
||||||
{
|
{
|
||||||
handler001();
|
handlerPrimCountTainted();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
private readonly List<ulong> m_knownChildRegions = new List<ulong>();
|
private readonly List<ulong> m_knownChildRegions = new List<ulong>();
|
||||||
//neighbouring regions we have enabled a child agent in
|
//neighbouring regions we have enabled a child agent in
|
||||||
|
|
||||||
private SignificantClientMovement handler001 = null; //OnSignificantClientMovement;
|
private SignificantClientMovement handlerSignificantClientMovement = null; //OnSignificantClientMovement;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1484,10 +1484,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
if (Util.GetDistanceTo(AbsolutePosition, posLastSignificantMove) > 0.5)
|
if (Util.GetDistanceTo(AbsolutePosition, posLastSignificantMove) > 0.5)
|
||||||
{
|
{
|
||||||
posLastSignificantMove = AbsolutePosition;
|
posLastSignificantMove = AbsolutePosition;
|
||||||
handler001 = OnSignificantClientMovement;
|
handlerSignificantClientMovement = OnSignificantClientMovement;
|
||||||
if (handler001 != null)
|
if (handlerSignificantClientMovement != null)
|
||||||
{
|
{
|
||||||
handler001(m_controllingClient);
|
handlerSignificantClientMovement(m_controllingClient);
|
||||||
m_scene.NotifyMyCoarseLocationChange();
|
m_scene.NotifyMyCoarseLocationChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
public event SendStatResult OnSendStatsResult;
|
public event SendStatResult OnSendStatsResult;
|
||||||
|
|
||||||
private SendStatResult handler001 = null;
|
private SendStatResult handlerSendStatResult = null;
|
||||||
|
|
||||||
private enum Stats : uint
|
private enum Stats : uint
|
||||||
{
|
{
|
||||||
|
@ -247,10 +247,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
statpack.Stat = sb;
|
statpack.Stat = sb;
|
||||||
|
|
||||||
handler001 = OnSendStatsResult;
|
handlerSendStatResult = OnSendStatsResult;
|
||||||
if (handler001 != null)
|
if (handlerSendStatResult != null)
|
||||||
{
|
{
|
||||||
handler001(statpack);
|
handlerSendStatResult(statpack);
|
||||||
}
|
}
|
||||||
resetvalues();
|
resetvalues();
|
||||||
m_report.Enabled = true;
|
m_report.Enabled = true;
|
||||||
|
|
Loading…
Reference in New Issue