diff options
author | Melanie Thielker | 2008-09-28 19:45:42 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-28 19:45:42 +0000 |
commit | 1d5b2bb8bc00b37e292236fa3d9326df84f2b76e (patch) | |
tree | 87b89bd4923cae371fc2efa23b52461891b35890 /OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |
parent | Remove llSetVehicledoubleParam. It does not exist. (diff) | |
download | opensim-SC-1d5b2bb8bc00b37e292236fa3d9326df84f2b76e.zip opensim-SC-1d5b2bb8bc00b37e292236fa3d9326df84f2b76e.tar.gz opensim-SC-1d5b2bb8bc00b37e292236fa3d9326df84f2b76e.tar.bz2 opensim-SC-1d5b2bb8bc00b37e292236fa3d9326df84f2b76e.tar.xz |
Add some methods to allow modules so set client view options
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 537735d..c8923e0 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -6622,6 +6622,34 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6622 | OutPacket(reply, ThrottleOutPacketType.Land); | 6622 | OutPacket(reply, ThrottleOutPacketType.Land); |
6623 | } | 6623 | } |
6624 | 6624 | ||
6625 | public void SetClientOption(string option, string value) | ||
6626 | { | ||
6627 | switch (option) | ||
6628 | { | ||
6629 | case "ReliableIsImportant": | ||
6630 | bool val = false; | ||
6631 | |||
6632 | if (bool.TryParse(value, out val)) | ||
6633 | m_PacketHandler.ReliableIsImportant = val; | ||
6634 | break; | ||
6635 | default: | ||
6636 | break; | ||
6637 | } | ||
6638 | } | ||
6639 | |||
6640 | public string GetClientOption(string option) | ||
6641 | { | ||
6642 | switch (option) | ||
6643 | { | ||
6644 | case "ReliableIsImportant": | ||
6645 | return m_PacketHandler.ReliableIsImportant.ToString(); | ||
6646 | break; | ||
6647 | default: | ||
6648 | break; | ||
6649 | } | ||
6650 | return string.Empty; | ||
6651 | } | ||
6652 | |||
6625 | public void KillEndDone() | 6653 | public void KillEndDone() |
6626 | { | 6654 | { |
6627 | KillPacket kp = new KillPacket(); | 6655 | KillPacket kp = new KillPacket(); |