tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
This serves as the central class from which buff-related functions are supported and carried out. More...
Static Public Member Functions | |
static bool | CanBeCleared (int buff) |
static void | CustomBuffTipSize (string buffTip, List< Vector2 > sizes) |
static void | DrawCustomBuffTip (string buffTip, SpriteBatch spriteBatch, int originX, int originY) |
static ModBuff | GetBuff (int type) |
Gets the ModBuff instance with the given type. If no ModBuff with the given type exists, returns null. More... | |
static bool | LongerExpertDebuff (int buff) |
static void | ModifyBuffTip (int buff, ref string tip, ref int rare) |
static bool | ReApply (int buff, NPC npc, int time, int buffIndex) |
static bool | ReApply (int buff, Player player, int time, int buffIndex) |
static void | Update (int buff, NPC npc, ref int buffIndex) |
static void | Update (int buff, Player player, ref int buffIndex) |
Properties | |
static int | BuffCount [get] |
Private Member Functions | |
delegate void | DelegateModifyBuffTip (int type, ref string tip, ref int rare) |
delegate void | DelegateUpdateNPC (int type, NPC npc, ref int buffIndex) |
delegate void | DelegateUpdatePlayer (int type, Player player, ref int buffIndex) |
Static Private Member Functions | |
static | BuffLoader () |
Static Private Attributes | |
static Action< string, List< Vector2 > >[] | HookCustomBuffTipSize |
static Action< string, SpriteBatch, int, int >[] | HookDrawCustomBuffTip |
static DelegateModifyBuffTip[] | HookModifyBuffTip |
static Func< int, NPC, int, int, bool >[] | HookReApplyNPC |
static Func< int, Player, int, int, bool >[] | HookReApplyPlayer |
static DelegateUpdateNPC[] | HookUpdateNPC |
static DelegateUpdatePlayer[] | HookUpdatePlayer |
static int | nextBuff = BuffID.Count |
static readonly bool[] | vanillaCanBeCleared = new bool[BuffID.Count] |
static readonly bool[] | vanillaLongerExpertDebuff = new bool[BuffID.Count] |
This serves as the central class from which buff-related functions are supported and carried out.
Definition at line 14 of file BuffLoader.cs.
|
staticprivate |
Definition at line 34 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.vanillaCanBeCleared, and Terraria.ModLoader.BuffLoader.vanillaLongerExpertDebuff.
|
static |
Definition at line 170 of file BuffLoader.cs.
References Terraria.ModLoader.ModBuff.canBeCleared, Terraria.ModLoader.BuffLoader.GetBuff(), and Terraria.ModLoader.BuffLoader.vanillaCanBeCleared.
|
static |
Definition at line 183 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.HookCustomBuffTipSize.
|
private |
|
private |
|
private |
|
static |
Definition at line 189 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.HookDrawCustomBuffTip.
|
static |
Gets the ModBuff instance with the given type. If no ModBuff with the given type exists, returns null.
Definition at line 77 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.BuffCount.
Referenced by Terraria.ModLoader.BuffLoader.CanBeCleared(), Terraria.ModLoader.BuffLoader.LongerExpertDebuff(), Terraria.ModLoader.BuffLoader.ModifyBuffTip(), Terraria.ModLoader.BuffLoader.ReApply(), and Terraria.ModLoader.BuffLoader.Update().
|
static |
Definition at line 166 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.GetBuff(), Terraria.ModLoader.ModBuff.longerExpertDebuff, and Terraria.ModLoader.BuffLoader.vanillaLongerExpertDebuff.
|
static |
Definition at line 174 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.GetBuff(), Terraria.ModLoader.BuffLoader.HookModifyBuffTip, and Terraria.ModLoader.ModBuff.ModifyBuffTip().
|
static |
Definition at line 154 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.GetBuff(), Terraria.ModLoader.BuffLoader.HookReApplyNPC, and Terraria.ModLoader.ModBuff.ReApply().
|
static |
Definition at line 142 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.GetBuff(), Terraria.ModLoader.BuffLoader.HookReApplyPlayer, and Terraria.ModLoader.ModBuff.ReApply().
|
static |
Definition at line 133 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.GetBuff(), Terraria.ModLoader.BuffLoader.HookUpdateNPC, and Terraria.ModLoader.ModBuff.Update().
|
static |
Definition at line 120 of file BuffLoader.cs.
References Terraria.ModLoader.BuffLoader.GetBuff(), Terraria.ModLoader.BuffLoader.HookUpdatePlayer, and Terraria.ModLoader.ModBuff.Update().
|
staticprivate |
Definition at line 31 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.CustomBuffTipSize().
|
staticprivate |
Definition at line 32 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.DrawCustomBuffTip().
|
staticprivate |
Definition at line 30 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.ModifyBuffTip().
|
staticprivate |
Definition at line 28 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.ReApply().
|
staticprivate |
Definition at line 27 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.ReApply().
|
staticprivate |
Definition at line 26 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.Update().
|
staticprivate |
Definition at line 24 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.Update().
|
staticprivate |
Definition at line 17 of file BuffLoader.cs.
|
staticprivate |
Definition at line 21 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.BuffLoader(), and Terraria.ModLoader.BuffLoader.CanBeCleared().
|
staticprivate |
Definition at line 20 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.BuffLoader(), and Terraria.ModLoader.BuffLoader.LongerExpertDebuff().
|
staticget |
Definition at line 72 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.GetBuff().