This serves as the central place from which mounts are stored and mount-related functions are carried out.
More...
|
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...
|
|
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 bool Terraria.ModLoader.MountLoader.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 |
|
) |
| |
|
static |
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)
Definition at line 144 of file MountLoader.cs.
144 {
145 if (IsModMountData(mount._data)) {
146 return mount._data.modMountData.Draw(playerDrawData, drawType, drawPlayer, ref texture, ref glowTexture, ref drawPosition, ref frame, ref drawColor, ref glowColor, ref rotation, ref spriteEffects, ref drawOrigin, ref drawScale, shadow);
147 }
148 return true;
149 }