示例#1
0
 // Token: 0x060051A1 RID: 20897 RVA: 0x00183DA0 File Offset: 0x00181FA0
 public GridPosition(GridPosition p)
 {
     this.x = p.x;
     this.y = p.y;
 }
示例#2
0
 // Token: 0x060051A7 RID: 20903 RVA: 0x00183E48 File Offset: 0x00182048
 public static int Distance(GridPosition a, GridPosition b)
 {
     return(Math.Abs(a.x - b.x) + Math.Abs(a.y - b.y));
 }
示例#3
0
 // Token: 0x060051A5 RID: 20901 RVA: 0x00183E04 File Offset: 0x00182004
 public static GridPosition Subtract(GridPosition a, GridPosition b)
 {
     return(new GridPosition(a.x - b.x, a.y - b.y));
 }
示例#4
0
 // Token: 0x060051A6 RID: 20902 RVA: 0x00183E2C File Offset: 0x0018202C
 public static GridPosition Multiply(GridPosition a, int b)
 {
     return(new GridPosition(a.x * b, a.y * b));
 }
示例#5
0
 // Token: 0x060051A4 RID: 20900 RVA: 0x00183DDC File Offset: 0x00181FDC
 public static GridPosition Add(GridPosition a, GridPosition b)
 {
     return(new GridPosition(a.x + b.x, a.y + b.y));
 }