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

◆ UseAbility()

static void Terraria.ModLoader.MountLoader.UseAbility ( Player player,
Vector2 mousePosition,
bool toggleOn )
inlinestatic

Allows you to make things happen while the mouse is pressed while the mount is active. Called each tick the mouse is pressed.

Parameters
player
mousePosition
toggleOnDoes nothing yet

Definition at line 110 of file MountLoader.cs.

111 {
112 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
113 if (IsModMount(player.mount._data))
114 {
115 player.mount._data.ModMount.UseAbility(player, mousePosition, toggleOn);
116 }
117 }
static bool IsModMount(Mount.MountData mountData)

References Terraria.Mount._data, Terraria.ModLoader.MountLoader.IsModMount(), Terraria.Mount.MountData.ModMount, and Terraria.Player.mount.

Referenced by Terraria.Player.ItemCheck_HandleMount().

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