Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
GolfBallTrackRecord.cs
Go to the documentation of this file.
3
5
7{
9
10 public void RecordHit(Vector2 position)
11 {
12 _hitLocations.Add(position);
13 }
14
16 {
18 int num = (int)(totalDistancePassed / 16.0);
19 int num2 = hitsMade + 2;
20 return num / num2;
21 }
22
24 {
25 hitsMade = 0;
27 int num = 0;
28 while (num < _hitLocations.Count - 1)
29 {
31 num++;
32 hitsMade++;
33 }
34 }
35}
void GetTrackInfo(out double totalDistancePassed, out int hitsMade)
static float Distance(Vector2 value1, Vector2 value2)
Definition Vector2.cs:91