TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ResizeAndFillArrays()

static void Terraria.ModLoader.GoreLoader.ResizeAndFillArrays ( )
inlinestaticpackage

Definition at line 63 of file GoreLoader.cs.

64 {
68 for (int i = GoreID.Count; i < GoreCount; i++)
69 {
72 }
74 {
75 TextureAssets.Gore[pair.Key] = ModContent.Request<Texture2D>(pair.Value.Texture);
76 }
77 }
static bool[] SafeGore
If false for a given gore type (F:Terraria.Gore.type), then that gore will turn into a puff of smoke ...
static Asset< Texture2D >[] Gore
static int[] DisappearSpeed
The value subtracted from F:Terraria.Gore.timeLeft every tick for a given gore type (F:Terraria....
Definition GoreID.cs:29
static int[] DisappearSpeedAlpha
The value added to F:Terraria.Gore.alpha every tick after F:Terraria.Gore.timeLeft hits 0 for a given...
Definition GoreID.cs:36
static readonly short Count
Definition GoreID.cs:1517
static void ResetStaticMembers(Type type, bool recursive=true)
Calls static constructors on the provided type and, optionally, its nested types.
static readonly IDictionary< int, ModGore > gores
Definition GoreLoader.cs:15

References Terraria.ID.GoreID.Count, Terraria.ID.GoreID.Sets.DisappearSpeed, Terraria.ID.GoreID.Sets.DisappearSpeedAlpha, Terraria.GameContent.TextureAssets.Gore, Terraria.ModLoader.GoreLoader.GoreCount, Terraria.ModLoader.GoreLoader.gores, Terraria.ModLoader.Core.LoaderUtils.ResetStaticMembers(), and Terraria.GameContent.ChildSafety.SafeGore.

Referenced by Terraria.ModLoader.ModContent.ResizeArrays().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: