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

◆ ForceForwardCursor()

void Terraria.Player.ForceForwardCursor ( bool state)
inlineprivate

Definition at line 29533 of file Player.cs.

29534 {
29535 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
29536 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
29537 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
29538 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
29539 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
29540 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
29541 //IL_004b: Unknown result type (might be due to invalid IL or missing references)
29542 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
29543 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
29544 //IL_006c: Unknown result type (might be due to invalid IL or missing references)
29545 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
29547 {
29549 if (state)
29550 {
29552 _mainMouseCoordsForward = new Point(Main.mouseX, Main.mouseY);
29553 Point val = (base.Center - Main.screenPosition + new Vector2((float)(direction * 200), 0f)).ToPoint();
29554 Main.mouseX = (PlayerInput.MouseX = val.X);
29555 Main.mouseY = (PlayerInput.MouseY = val.Y);
29556 }
29557 else
29558 {
29559 PlayerInput.MouseX = _inputMouseCoordsForward.X;
29560 PlayerInput.MouseY = _inputMouseCoordsForward.Y;
29561 Main.mouseX = _mainMouseCoordsForward.X;
29562 Main.mouseY = _mainMouseCoordsForward.Y;
29563 }
29564 }
29565 }
Point _mainMouseCoordsForward
Definition Player.cs:3243
bool _forceForwardCursor
Definition Player.cs:3239
Point _inputMouseCoordsForward
Definition Player.cs:3241

References Terraria.Player._forceForwardCursor, Terraria.Player._inputMouseCoordsForward, Terraria.Player._mainMouseCoordsForward, Terraria.Entity.direction, Terraria.GameInput.PlayerInput.MouseX, Terraria.Main.mouseX, Terraria.GameInput.PlayerInput.MouseY, and Terraria.Main.mouseY.

Referenced by Terraria.Player.ItemCheckWrapped().

+ Here is the caller graph for this function: