public static void RegisterFamiliars(this GameData data, ModResources resources) { var petExtensions = resources.LoadAllObjectsWithComponent <PetExt>(); foreach (var extension in petExtensions) { data.Familiars.Add(extension); } }
public static void RegisterStatusEffects(this GameData data, ModResources resources) { var statusEffects = resources.LoadAllObjectsWithComponent <StatusEffectExt>(); foreach (var effect in statusEffects) { data.StatusEffects.Add(effect); } }