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

◆ ResizeArrays()

static void Terraria.ModLoader.ProjectileLoader.ResizeArrays ( bool unloading)
inlinestaticpackage

Definition at line 158 of file ProjectileLoader.cs.

159 {
160 if (!unloading)
161 {
163 }
166 Array.Resize(ref Main.projHostile, ProjectileCount);
167 Array.Resize(ref Main.projHook, ProjectileCount);
168 Array.Resize(ref Main.projFrames, ProjectileCount);
169 Array.Resize(ref Main.projPet, ProjectileCount);
170 Array.Resize(ref Lang._projectileNameCache, ProjectileCount);
171 for (int j = ProjectileID.Count; j < ProjectileCount; j++)
172 {
173 Main.projFrames[j] = 1;
174 Lang._projectileNameCache[j] = LocalizedText.Empty;
175 }
176 Array.Resize(ref Projectile.perIDStaticNPCImmunity, ProjectileCount);
177 for (int i = 0; i < ProjectileCount; i++)
178 {
179 Projectile.perIDStaticNPCImmunity[i] = new uint[200];
180 }
181 }
static Asset< Texture2D >[] Projectile
static readonly short Count
static readonly LocalizedText Empty
Contains the localization value corresponding to a key for the current game language....
static void ResetStaticMembers(Type type, bool recursive=true)
Calls static constructors on the provided type and, optionally, its nested types.

References Terraria.Lang._projectileNameCache, Terraria.ID.ProjectileID.Count, Terraria.Localization.LocalizedText.Empty, Terraria.Projectile.perIDStaticNPCImmunity, Terraria.GameContent.TextureAssets.Projectile, Terraria.ModLoader.ProjectileLoader.ProjectileCount, Terraria.Main.projFrames, Terraria.Main.projHook, Terraria.Main.projHostile, Terraria.Main.projPet, and Terraria.ModLoader.Core.LoaderUtils.ResetStaticMembers().

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

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