mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Code refactor
This commit is contained in:
parent
5ca7e486f8
commit
e14a12f2ab
310 changed files with 4875 additions and 4102 deletions
30
Assets/Scripts/DefParents/ActorAddonDefs.cs
Normal file
30
Assets/Scripts/DefParents/ActorAddonDefs.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue