diff options
author | Melanie | 2010-03-31 04:20:20 +0100 |
---|---|---|
committer | Melanie | 2010-03-31 04:20:20 +0100 |
commit | ec637e2b8c089efc16bbb9faae0a1e3cf939db41 (patch) | |
tree | 6b0f9c1749983761fd0e8809294fc18b6aa14770 /OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |
parent | minor: commented out code removal (diff) | |
download | opensim-SC_OLD-ec637e2b8c089efc16bbb9faae0a1e3cf939db41.zip opensim-SC_OLD-ec637e2b8c089efc16bbb9faae0a1e3cf939db41.tar.gz opensim-SC_OLD-ec637e2b8c089efc16bbb9faae0a1e3cf939db41.tar.bz2 opensim-SC_OLD-ec637e2b8c089efc16bbb9faae0a1e3cf939db41.tar.xz |
Committing the LightShare code, which was developed by TomMeta of Meta7.
This allows scripts to set WindLight parameters for clients connecting
to a region. Currently, this is only supported by the Meta7 viewer.
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 9ba99d6..25f6ef0 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -845,17 +845,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
845 | } | 845 | } |
846 | } | 846 | } |
847 | 847 | ||
848 | public void SendGenericMessage(string method, List<string> message) | 848 | public void SendGenericMessage(string method, List<byte[]> message) |
849 | { | 849 | { |
850 | GenericMessagePacket gmp = new GenericMessagePacket(); | 850 | GenericMessagePacket gmp = new GenericMessagePacket(); |
851 | gmp.MethodData.Method = Util.StringToBytes256(method); | 851 | gmp.MethodData.Method = Util.StringToBytes256(method); |
852 | gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count]; | 852 | gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count]; |
853 | int i = 0; | 853 | int i = 0; |
854 | foreach (string val in message) | 854 | foreach (byte[] val in message) |
855 | { | 855 | { |
856 | gmp.ParamList[i] = new GenericMessagePacket.ParamListBlock(); | 856 | gmp.ParamList[i] = new GenericMessagePacket.ParamListBlock(); |
857 | gmp.ParamList[i++].Parameter = Util.StringToBytes256(val); | 857 | gmp.ParamList[i++].Parameter = val; |
858 | } | 858 | } |
859 | |||
859 | OutPacket(gmp, ThrottleOutPacketType.Task); | 860 | OutPacket(gmp, ThrottleOutPacketType.Task); |
860 | } | 861 | } |
861 | 862 | ||