a few changes on udp zero encoder and part text color

This commit is contained in:
UbitUmarov
2025-06-06 23:27:51 +01:00
parent 1dd9393fff
commit f20e3818af
7 changed files with 98 additions and 69 deletions

View File

@@ -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)

View File

@@ -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;