|
TModLoader v1.4.4.9
TModLoader source code documentation
|
This serves as the central place from which mounts are stored and mount-related functions are carried out. More...
Collaboration diagram for Terraria.ModLoader.MountLoader:Static Public Member Functions | |
| static ModMount | GetMount (int type) |
| Gets the ModMount instance corresponding to the given type. Returns null if no ModMount has the given type. | |
| 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 | 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. | |
| static void | AimAbility (Mount mount, Player player, Vector2 mousePosition) |
| Allows you to make things happen when the mount ability is aiming (while charging). | |
| 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 ModMount is shared between all players. Custom dust spawning logic is also possible via the skipDust parameter. | |
| 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. | |
| 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 M:Terraria.ModLoader.ModMount.Draw(System.Collections.Generic.List<Terraria.DataStructures.DrawData>,System.Int32,Terraria.Player,Microsoft.Xna.Framework.Graphics.Texture2D@,Microsoft.Xna.Framework.Graphics.Texture2D@,Microsoft.Xna.Framework.Vector2@,Microsoft.Xna.Framework.Rectangle@,Microsoft.Xna.Framework.Color@,Microsoft.Xna.Framework.Color@,System.Single@,Microsoft.Xna.Framework.Graphics.SpriteEffects@,Microsoft.Xna.Framework.Vector2@,System.Single@,System.Single) | |
Static Package Functions | |
| static int | ReserveMountID () |
| static void | ResizeArrays () |
| static void | Unload () |
| static bool | IsModMount (Mount.MountData mountData) |
| static void | UpdateEffects (Player mountedPlayer) |
| static bool | UpdateFrame (Player mountedPlayer, int state, Vector2 velocity) |
| static bool | CustomBodyFrame (Mount.MountData mount) |
Static Package Attributes | |
| static readonly IDictionary< int, ModMount > | mountDatas = new Dictionary<int, ModMount>() |
Properties | |
| static int | MountCount = MountID.Count [get, private set] |
This serves as the central place from which mounts are stored and mount-related functions are carried out.
Definition at line 14 of file MountLoader.cs.