Create-A-Crate: Provided Methods
Updated a month agoUsage
Provided Methods
Here are all methods CreateACrate provides:
public static ModdedCrateRuntimeParameters MakeModdedCrateRuntimeParameters();public static CrateData MakeCrateData();public static Item MakeItem();public static void RegisterCrateToAllLevelsWithRarity();public static void RegisterCrateToVanillaLevelsWithRarity();public static void RegisterCrateToLevelWithRarity();public static ModdedCrateRuntimeParameters GetRuntimeParameters();public static int GetRuntimeParametersIndex();public static Projectile MakeProjectile();public static void RegisterProjectile();public static Projectile GetProjectile();public static int GetProjectileIndex();
The Make- and Register-methods are already included in the example methods provided, the Get-methods are mainly useful if you would like to access the data of your crate at a later point in the game without saving any data as a variable, for example if having a soft dependency on the mod.
On top of that, multiple methods have overloads to allow for more detail in which levels have which rarities, or what information to use to retrieve data.