mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
a few changes on udp zero encoder and part text color
This commit is contained in:
@@ -1025,34 +1025,50 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// </value>
|
||||
public Color Color
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return m_color; }
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
set { m_color = value; }
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public int TextColorArgb()
|
||||
{
|
||||
return m_color.ToArgb();
|
||||
}
|
||||
|
||||
public osUTF8 osUTF8Text;
|
||||
public string Text
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return osUTF8Text == null ? string.Empty : osUTF8Text.ToString(); }
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
set { osUTF8Text = string.IsNullOrEmpty(value) ? null : new osUTF8(value, 254); }
|
||||
}
|
||||
|
||||
public osUTF8 osUTF8SitName;
|
||||
public string SitName
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return osUTF8SitName == null ? string.Empty : osUTF8SitName.ToString(); }
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
set { osUTF8SitName = string.IsNullOrEmpty(value) ? null : new osUTF8(value, 36); }
|
||||
}
|
||||
|
||||
public osUTF8 osUTF8TouchName;
|
||||
public string TouchName
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return osUTF8TouchName == null ? string.Empty : osUTF8TouchName.ToString(); }
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
set { osUTF8TouchName = string.IsNullOrEmpty(value) ? null : new osUTF8(value, 36); }
|
||||
}
|
||||
|
||||
public int LinkNum
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return m_linkNum; }
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
set
|
||||
{
|
||||
// if (ParentGroup != null)
|
||||
|
||||
@@ -315,8 +315,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (scriptEngines.Length == 0) // No engine at all
|
||||
return;
|
||||
|
||||
bool running;
|
||||
|
||||
m_items.LockItemsForRead(true);
|
||||
|
||||
foreach (TaskInventoryItem item in m_scripts.Values)
|
||||
@@ -324,7 +322,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
//running = false;
|
||||
foreach (IScriptModule e in scriptEngines)
|
||||
{
|
||||
if (e.HasScript(item.ItemID, out running))
|
||||
if (e.HasScript(item.ItemID, out bool running))
|
||||
{
|
||||
item.ScriptRunning = running;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user