aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-28 19:45:42 +0000
committerMelanie Thielker2008-09-28 19:45:42 +0000
commit1d5b2bb8bc00b37e292236fa3d9326df84f2b76e (patch)
tree87b89bd4923cae371fc2efa23b52461891b35890
parentRemove llSetVehicledoubleParam. It does not exist. (diff)
downloadopensim-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 '')
-rw-r--r--OpenSim/Framework/IClientAPI.cs2
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs28
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs1
-rw-r--r--OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs9
-rw-r--r--OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs9
5 files changed, 49 insertions, 0 deletions
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs
index 3b5bcaa..9df1e00 100644
--- a/OpenSim/Framework/IClientAPI.cs
+++ b/OpenSim/Framework/IClientAPI.cs
@@ -749,6 +749,8 @@ namespace OpenSim.Framework
749 void SendLogoutPacket(); 749 void SendLogoutPacket();
750 ClientInfo GetClientInfo(); 750 ClientInfo GetClientInfo();
751 void SetClientInfo(ClientInfo info); 751 void SetClientInfo(ClientInfo info);
752 void SetClientOption(string option, string value);
753 string GetClientOption(string option);
752 void Terminate(); 754 void Terminate();
753 755
754 void SendSetFollowCamProperties(UUID objectID, SortedDictionary<int, float> parameters); 756 void SendSetFollowCamProperties(UUID objectID, SortedDictionary<int, float> parameters);
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();
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
index ea397c7..d57321e 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
@@ -57,6 +57,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
57 uint SilenceLimit { get; set; } 57 uint SilenceLimit { get; set; }
58 uint DiscardTimeout { get; set; } 58 uint DiscardTimeout { get; set; }
59 uint ResendTimeout { get; set; } 59 uint ResendTimeout { get; set; }
60 bool ReliableIsImportant { get; set; }
60 61
61 void InPacket(Packet packet); 62 void InPacket(Packet packet);
62 void ProcessInPacket(LLQueItem item); 63 void ProcessInPacket(LLQueItem item);
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
index 92214b9..8c76884 100644
--- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
+++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs
@@ -873,6 +873,15 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
873 { 873 {
874 } 874 }
875 875
876 public void SetClientOption(string option, string value)
877 {
878 }
879
880 public string GetClientOption(string option)
881 {
882 return string.Empty;
883 }
884
876 public void KillEndDone() 885 public void KillEndDone()
877 { 886 {
878 } 887 }
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs
index 3f1823a..92a96f9 100644
--- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs
+++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs
@@ -870,6 +870,15 @@ namespace OpenSim.Region.Examples.SimpleModule
870 { 870 {
871 } 871 }
872 872
873 public void SetClientOption(string option, string value)
874 {
875 }
876
877 public string GetClientOption(string option)
878 {
879 return string.Empty;
880 }
881
873 public void KillEndDone() 882 public void KillEndDone()
874 { 883 {
875 } 884 }