2020-08-13 19:25:12 +02:00

16 lines
404 B
C#

using System.Collections.Generic;
using System.Linq;
namespace QSB.WorldSync
{
public static class WorldRegistry
{
public static List<WorldObject> WorldObjects { get; } = new List<WorldObject>();
public static T GetObject<T>(string name) where T : WorldObject
{
return WorldObjects.OfType<T>().FirstOrDefault(x => x.UniqueName == name);
}
}
}