Terraria.ModLoader.BuffLoader.ResizeArrays C# (CSharp) Method

ResizeArrays() static private method

static private ResizeArrays ( ) : void
return void
        internal static void ResizeArrays()
        {
            Array.Resize(ref Main.pvpBuff, nextBuff);
            Array.Resize(ref Main.persistentBuff, nextBuff);
            Array.Resize(ref Main.vanityPet, nextBuff);
            Array.Resize(ref Main.lightPet, nextBuff);
            Array.Resize(ref Main.meleeBuff, nextBuff);
            Array.Resize(ref Main.debuff, nextBuff);
            Array.Resize(ref Main.buffName, nextBuff);
            Array.Resize(ref Main.buffTip, nextBuff);
            Array.Resize(ref Main.buffNoSave, nextBuff);
            Array.Resize(ref Main.buffNoTimeDisplay, nextBuff);
            Array.Resize(ref Main.buffDoubleApply, nextBuff);
            Array.Resize(ref Main.buffAlpha, nextBuff);
            Array.Resize(ref Main.buffTexture, nextBuff);

            ModLoader.BuildGlobalHook(ref HookUpdatePlayer, globalBuffs, g => g.Update);
            ModLoader.BuildGlobalHook(ref HookUpdateNPC, globalBuffs, g => g.Update);
            ModLoader.BuildGlobalHook(ref HookReApplyPlayer, globalBuffs, g => g.ReApply);
            ModLoader.BuildGlobalHook(ref HookReApplyNPC, globalBuffs, g => g.ReApply);
            ModLoader.BuildGlobalHook(ref HookModifyBuffTip, globalBuffs, g => g.ModifyBuffTip);
            ModLoader.BuildGlobalHook(ref HookCustomBuffTipSize, globalBuffs, g => g.CustomBuffTipSize);
            ModLoader.BuildGlobalHook(ref HookDrawCustomBuffTip, globalBuffs, g => g.DrawCustomBuffTip);
        }

Usage Example

Exemplo n.º 1
0
 private static void ResizeArrays(bool unloading = false)
 {
     ItemLoader.ResizeArrays(unloading);
     EquipLoader.ResizeAndFillArrays();
     ModPrefix.ResizeArrays();
     Main.InitializeItemAnimations();
     ModDust.ResizeArrays();
     TileLoader.ResizeArrays(unloading);
     WallLoader.ResizeArrays(unloading);
     ProjectileLoader.ResizeArrays();
     NPCLoader.ResizeArrays(unloading);
     NPCHeadLoader.ResizeAndFillArrays();
     ModGore.ResizeAndFillArrays();
     SoundLoader.ResizeAndFillArrays();
     MountLoader.ResizeArrays();
     BuffLoader.ResizeArrays();
     PlayerHooks.RebuildHooks();
     BackgroundTextureLoader.ResizeAndFillArrays();
     UgBgStyleLoader.ResizeAndFillArrays();
     SurfaceBgStyleLoader.ResizeAndFillArrays();
     GlobalBgStyleLoader.ResizeAndFillArrays(unloading);
     WaterStyleLoader.ResizeArrays();
     WaterfallStyleLoader.ResizeArrays();
     WorldHooks.ResizeArrays();
     foreach (LocalizedText text in LanguageManager.Instance._localizedTexts.Values)
     {
         text.Override = null;
     }
 }
All Usage Examples Of Terraria.ModLoader.BuffLoader::ResizeArrays