Create-A-Crate: Provided Methods
Updated a week 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();
The first six methods are already included in CreateYourOwnCrate(), the last two are mainly useful if you would like to access the data of your crate at a later point in the game without saving its ModdedCrateRuntimeParameters as a variable, for example if having a soft dependency on the mod.
On top of that, the methods to register your crate to multiple levels and the methods to get ModdedCrateRuntimeParameters both have multiple overload methods to allow for more detail in which levels have which rarities, or what information to use to retrieve the RuntimeParameters.