Aleksander Waage acbe088651 objectid
2020-08-13 20:47:23 +02:00

16 lines
395 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>(int id) where T : WorldObject
{
return WorldObjects.OfType<T>().FirstOrDefault(x => x.ObjectId == id);
}
}
}