forked from E-riCA0/StawdewValley
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPathNode.cs
43 lines (38 loc) · 978 Bytes
/
PathNode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Decompiled with JetBrains decompiler
// Type: StardewValley.PathNode
// Assembly: Stardew Valley, Version=1.2.6400.27469, Culture=neutral, PublicKeyToken=null
// MVID: 77B7094A-F6F0-4ACC-91F4-E335E2733EDB
// Assembly location: D:\SteamLibrary\steamapps\common\Stardew Valley\Stardew Valley.exe
namespace StardewValley
{
public class PathNode
{
public int x;
public int y;
public byte g;
public PathNode parent;
public PathNode(int x, int y, PathNode parent)
{
this.x = x;
this.y = y;
this.parent = parent;
}
public PathNode(int x, int y, byte g, PathNode parent)
{
this.x = x;
this.y = y;
this.g = g;
this.parent = parent;
}
public override bool Equals(object obj)
{
if (this.x == ((PathNode) obj).x)
return this.y == ((PathNode) obj).y;
return false;
}
public override int GetHashCode()
{
return 100000 * this.x + this.y;
}
}
}