Take advantage of ImmutableDictionary in Animations.ToDictionary()

This commit is contained in:
cinder
2025-05-28 18:18:53 -05:00
parent 3ebed429e5
commit a12d5fa8f6
3 changed files with 163 additions and 158 deletions

View File

@@ -1,12 +1,13 @@
using System;
using System.Text;
using System.Collections.Generic;
using System.Collections.Immutable;
namespace OpenMetaverse.TestClient
{
public class PlayAnimationCommand : Command
{
private Dictionary<UUID, string> m_BuiltInAnimations = new Dictionary<UUID, string>(Animations.ToDictionary());
private readonly ImmutableDictionary<UUID, string> m_BuiltInAnimations = Animations.ToDictionary();
public PlayAnimationCommand(TestClient testClient)
{
Name = "play";