![]() |
Terraria ModLoader
0.10.1.5
A framework for 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 13 of file BuffLoader.cs.
|
staticprivate |
Definition at line 32 of file BuffLoader.cs.
References Terraria.ModLoader.ModNet.AllowVanillaClients.
|
static |
Definition at line 167 of file BuffLoader.cs.
|
static |
Definition at line 180 of file BuffLoader.cs.
|
private |
|
private |
|
private |
|
static |
Definition at line 186 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 75 of file BuffLoader.cs.
Referenced by Terraria.ModLoader.ModContent.MusicExists().
|
static |
Definition at line 163 of file BuffLoader.cs.
|
static |
Definition at line 171 of file BuffLoader.cs.
|
static |
Definition at line 139 of file BuffLoader.cs.
|
static |
Definition at line 151 of file BuffLoader.cs.
|
static |
Definition at line 117 of file BuffLoader.cs.
|
static |
Definition at line 130 of file BuffLoader.cs.
|
static |
Definition at line 70 of file BuffLoader.cs.
|
staticprivate |
Definition at line 29 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 26 of file BuffLoader.cs.
|
staticprivate |
Definition at line 25 of file BuffLoader.cs.
|
staticprivate |
Definition at line 24 of file BuffLoader.cs.
|
staticprivate |
Definition at line 22 of file BuffLoader.cs.
|
staticprivate |
Definition at line 15 of file BuffLoader.cs.
|
staticprivate |
Definition at line 19 of file BuffLoader.cs.
|
staticprivate |
Definition at line 18 of file BuffLoader.cs.