diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 3888a0b..51cc763 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -831,6 +831,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
831 | } | 831 | } |
832 | } | 832 | } |
833 | 833 | ||
834 | public void SendGenericMessage(string method, List<string> message) | ||
835 | { | ||
836 | GenericMessagePacket gmp = new GenericMessagePacket(); | ||
837 | gmp.MethodData.Method = Util.StringToBytes256(method); | ||
838 | gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count]; | ||
839 | int i = 0; | ||
840 | foreach (string val in message) | ||
841 | { | ||
842 | gmp.ParamList[i] = new GenericMessagePacket.ParamListBlock(); | ||
843 | gmp.ParamList[i++].Parameter = Util.StringToBytes256(val); | ||
844 | } | ||
845 | |||
846 | OutPacket(gmp, ThrottleOutPacketType.Task); | ||
847 | } | ||
848 | |||
834 | public void SendGenericMessage(string method, List<byte[]> message) | 849 | public void SendGenericMessage(string method, List<byte[]> message) |
835 | { | 850 | { |
836 | GenericMessagePacket gmp = new GenericMessagePacket(); | 851 | GenericMessagePacket gmp = new GenericMessagePacket(); |
@@ -4907,14 +4922,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4907 | arg.SessionID = x.SessionID; | 4922 | arg.SessionID = x.SessionID; |
4908 | arg.State = x.State; | 4923 | arg.State = x.State; |
4909 | UpdateAgent handlerAgentUpdate = OnAgentUpdate; | 4924 | UpdateAgent handlerAgentUpdate = OnAgentUpdate; |
4925 | UpdateAgent handlerPreAgentUpdate = OnPreAgentUpdate; | ||
4910 | lastarg = arg; // save this set of arguments for nexttime | 4926 | lastarg = arg; // save this set of arguments for nexttime |
4911 | if (handlerAgentUpdate != null) | 4927 | if (handlerPreAgentUpdate != null) |
4912 | { | ||
4913 | OnPreAgentUpdate(this, arg); | 4928 | OnPreAgentUpdate(this, arg); |
4929 | if (handlerAgentUpdate != null) | ||
4914 | OnAgentUpdate(this, arg); | 4930 | OnAgentUpdate(this, arg); |
4915 | } | ||
4916 | 4931 | ||
4917 | handlerAgentUpdate = null; | 4932 | handlerAgentUpdate = null; |
4933 | handlerPreAgentUpdate = null; | ||
4918 | } | 4934 | } |
4919 | } | 4935 | } |
4920 | 4936 | ||