![]() |
Terraria ModLoader
0.11.8.1
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, Player player, int time, int buffIndex) |
static bool | ReApply (int buff, NPC npc, int time, int buffIndex) |
static void | Update (int buff, Player player, ref int buffIndex) |
static void | Update (int buff, NPC npc, ref int buffIndex) |
Static Public Attributes | |
static int | BuffCount => nextBuff |
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.ModNet.AllowVanillaClients.
|
static |
Definition at line 170 of file BuffLoader.cs.
|
static |
Definition at line 183 of file BuffLoader.cs.
|
private |
|
private |
|
private |
|
static |
Definition at line 189 of file BuffLoader.cs.
|
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.ModLoader.Mods.
Referenced by Terraria.ModLoader.ModContent.MusicExists().
|
static |
Definition at line 166 of file BuffLoader.cs.
|
static |
Definition at line 174 of file BuffLoader.cs.
|
static |
Definition at line 142 of file BuffLoader.cs.
|
static |
Definition at line 154 of file BuffLoader.cs.
|
static |
Definition at line 120 of file BuffLoader.cs.
|
static |
Definition at line 133 of file BuffLoader.cs.
|
static |
Definition at line 72 of file BuffLoader.cs.
|
staticprivate |
Definition at line 31 of file BuffLoader.cs.
|
staticprivate |
Definition at line 32 of file BuffLoader.cs.
|
staticprivate |
Definition at line 30 of file BuffLoader.cs.
|
staticprivate |
Definition at line 28 of file BuffLoader.cs.
|
staticprivate |
Definition at line 27 of file BuffLoader.cs.
|
staticprivate |
Definition at line 26 of file BuffLoader.cs.
|
staticprivate |
Definition at line 24 of file BuffLoader.cs.
|
staticprivate |
Definition at line 17 of file BuffLoader.cs.
|
staticprivate |
Definition at line 21 of file BuffLoader.cs.
|
staticprivate |
Definition at line 20 of file BuffLoader.cs.