Add some methods to allow modules so set client view options

0.6.0-stable
Melanie Thielker 2008-09-28 19:45:42 +00:00
parent 9709d01358
commit 1d5b2bb8bc
5 changed files with 49 additions and 0 deletions

View File

@ -749,6 +749,8 @@ namespace OpenSim.Framework
void SendLogoutPacket(); void SendLogoutPacket();
ClientInfo GetClientInfo(); ClientInfo GetClientInfo();
void SetClientInfo(ClientInfo info); void SetClientInfo(ClientInfo info);
void SetClientOption(string option, string value);
string GetClientOption(string option);
void Terminate(); void Terminate();
void SendSetFollowCamProperties(UUID objectID, SortedDictionary<int, float> parameters); void SendSetFollowCamProperties(UUID objectID, SortedDictionary<int, float> parameters);

View File

@ -6622,6 +6622,34 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(reply, ThrottleOutPacketType.Land); OutPacket(reply, ThrottleOutPacketType.Land);
} }
public void SetClientOption(string option, string value)
{
switch (option)
{
case "ReliableIsImportant":
bool val = false;
if (bool.TryParse(value, out val))
m_PacketHandler.ReliableIsImportant = val;
break;
default:
break;
}
}
public string GetClientOption(string option)
{
switch (option)
{
case "ReliableIsImportant":
return m_PacketHandler.ReliableIsImportant.ToString();
break;
default:
break;
}
return string.Empty;
}
public void KillEndDone() public void KillEndDone()
{ {
KillPacket kp = new KillPacket(); KillPacket kp = new KillPacket();

View File

@ -57,6 +57,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
uint SilenceLimit { get; set; } uint SilenceLimit { get; set; }
uint DiscardTimeout { get; set; } uint DiscardTimeout { get; set; }
uint ResendTimeout { get; set; } uint ResendTimeout { get; set; }
bool ReliableIsImportant { get; set; }
void InPacket(Packet packet); void InPacket(Packet packet);
void ProcessInPacket(LLQueItem item); void ProcessInPacket(LLQueItem item);

View File

@ -873,6 +873,15 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
{ {
} }
public void SetClientOption(string option, string value)
{
}
public string GetClientOption(string option)
{
return string.Empty;
}
public void KillEndDone() public void KillEndDone()
{ {
} }

View File

@ -870,6 +870,15 @@ namespace OpenSim.Region.Examples.SimpleModule
{ {
} }
public void SetClientOption(string option, string value)
{
}
public string GetClientOption(string option)
{
return string.Empty;
}
public void KillEndDone() public void KillEndDone()
{ {
} }