mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Add some methods to allow modules so set client view options
This commit is contained in:
@@ -6622,6 +6622,34 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
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()
|
||||
{
|
||||
KillPacket kp = new KillPacket();
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
uint SilenceLimit { get; set; }
|
||||
uint DiscardTimeout { get; set; }
|
||||
uint ResendTimeout { get; set; }
|
||||
bool ReliableIsImportant { get; set; }
|
||||
|
||||
void InPacket(Packet packet);
|
||||
void ProcessInPacket(LLQueItem item);
|
||||
|
||||
Reference in New Issue
Block a user