mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
31 lines
711 B
C#
31 lines
711 B
C#
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<ActorAddonDef> allDefs = new List<ActorAddonDef>();
|
|
|
|
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()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|