terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ DrawInterface_GolfBallIndicator()

static void Terraria.Main.DrawInterface_GolfBallIndicator ( )
inlinestaticprivate

Definition at line 12233 of file Main.cs.

12234 {
12235 if (!true)
12236 {
12237 }
12238 bool flag = Item.IsAGolfingItem(Main.LocalPlayer.HeldItem);
12239 Projectile lastHitBall = Main.LocalGolfState.GetLastHitBall();
12240 if (lastHitBall != null)
12241 {
12244 Player localPlayer = Main.LocalPlayer;
12245 float x = localPlayer.position.X;
12246 float y = localPlayer.position.Y;
12247 float x2 = lastHitBall.position.X;
12248 float y2 = lastHitBall.position.Y;
12249 if (localPlayer == null)
12250 {
12251 }
12253 float num = vector.Length();
12255 if (49942 == 0)
12256 {
12257 }
12258 float num2;
12259 Microsoft.Xna.Framework.Vector2 vector2 = num2.ToRotationVector2();
12262 float num3;
12263 Microsoft.Xna.Framework.Vector2 vector4 = num3.ToRotationVector2();
12264 float num4 = MathHelper.Lerp(num3, num3, num3);
12265 float num5 = MathHelper.Lerp(num4, num4, num3);
12266 return;
12267 }
12268 }
class f__AnonymousType0<< Count > j__TPar
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:61
static bool IsGolfBallResting(Projectile golfBall)

References Terraria.Main.Camera, Terraria.GameContent.Golf.GolfState.GetLastHitBall(), Terraria.Player.HeldItem, Terraria.Item.IsAGolfingItem(), Terraria.GameContent.Golf.GolfHelper.IsGolfBallResting(), j__TPar, Microsoft.Xna.Framework.Vector2.Length(), Microsoft.Xna.Framework.MathHelper.Lerp(), Terraria.Main.LocalGolfState, Terraria.Main.LocalPlayer, Terraria.Entity.position, and Microsoft.Xna.Framework.Vector2.X.

Referenced by Terraria.Main.DrawInterface_9_WireSelection().