using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RimWorldAnimationStudio { public static class ActorAddonDefs { public static List allDefs = new List(); public static ActorAddonDef GetNamed(string addonName) { return allDefs.FirstOrDefault(x => x.addonName == addonName); } public static void AddDef(ActorAddonDef actorAddonDef) { if (allDefs.Any(x => x.addonName == actorAddonDef.addonName)) return; allDefs.Add(actorAddonDef); } public static void OnLoad() { } } }