![]() |
tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
This serves as the central place from which mounts are stored and mount-related functions are carried out. More...
Static Public Member Functions | |
static void | AimAbility (Mount mount, Player player, Vector2 mousePosition) |
Allows you to make things happen when the mount ability is aiming (while charging). More... | |
static void | Dismount (Mount mount, Player player, ref bool skipDust) |
Allows you to make things happen when this mount is de-spawned. Useful for player-specific cleanup, see SetMount. Custom dust spawning logic is also possible via the skipDust parameter. More... | |
static bool | Draw (Mount mount, List< DrawData > playerDrawData, int drawType, Player drawPlayer, ref Texture2D texture, ref Texture2D glowTexture, ref Vector2 drawPosition, ref Rectangle frame, ref Color drawColor, ref Color glowColor, ref float rotation, ref SpriteEffects spriteEffects, ref Vector2 drawOrigin, ref float drawScale, float shadow) |
See ModMountData.Draw(List<DrawData>, int, Player, ref Texture2D, ref Texture2D, ref Vector2, ref Rectangle, ref Color, ref Color, ref float, ref SpriteEffects, ref Vector2, ref float, float) More... | |
static ModMountData | GetMount (int type) |
Gets the ModMountData instance corresponding to the given type. Returns null if no ModMountData has the given type. More... | |
static void | JumpHeight (Player mountedPlayer, Mount.MountData mount, ref int jumpHeight, float xVelocity) |
static void | JumpSpeed (Player mountedPlayer, Mount.MountData mount, ref float jumpSpeed, float xVelocity) |
static void | SetMount (Mount mount, Player player, ref bool skipDust) |
Allows you to make things happen when this mount is spawned in. Useful for player-specific initialization, utilizing player.mount._mountSpecificData or a ModPlayer class since ModMountData is shared between all players. Custom dust spawning logic is also possible via the skipDust parameter. More... | |
static void | UseAbility (Player player, Vector2 mousePosition, bool toggleOn) |
Allows you to make things happen while the mouse is pressed while the mount is active. Called each tick the mouse is pressed. More... | |
Static Private Attributes | |
static int | nextMount = MountID.Count |
This serves as the central place from which mounts are stored and mount-related functions are carried out.
Definition at line 13 of file MountLoader.cs.
|
static |
Allows you to make things happen when the mount ability is aiming (while charging).
mount | |
player | |
mousePosition |
Definition at line 109 of file MountLoader.cs.
|
static |
Allows you to make things happen when this mount is de-spawned. Useful for player-specific cleanup, see SetMount. Custom dust spawning logic is also possible via the skipDust parameter.
mount | |
player | |
skipDust | Set to true to skip the vanilla dust spawning logic |
Definition at line 135 of file MountLoader.cs.
|
static |
Definition at line 144 of file MountLoader.cs.
|
static |
Gets the ModMountData instance corresponding to the given type. Returns null if no ModMountData has the given type.
type | The type of the mount. |
Definition at line 23 of file MountLoader.cs.
|
static |
Definition at line 58 of file MountLoader.cs.
|
static |
Definition at line 65 of file MountLoader.cs.
|
static |
Allows you to make things happen when this mount is spawned in. Useful for player-specific initialization, utilizing player.mount._mountSpecificData or a ModPlayer class since ModMountData is shared between all players. Custom dust spawning logic is also possible via the skipDust parameter.
mount | |
player | |
skipDust | Set to true to skip the vanilla dust spawning logic |
Definition at line 122 of file MountLoader.cs.
|
static |
Allows you to make things happen while the mouse is pressed while the mount is active. Called each tick the mouse is pressed.
player | |
mousePosition | |
toggleOn | Does nothing yet |
Definition at line 98 of file MountLoader.cs.
|
staticprivate |
Definition at line 15 of file MountLoader.cs.