Esempio n. 1
0
 public bool Equals(CoordS other)
 {
     return(X == other.X && Y == other.Y && Z == other.Z);
 }
Esempio n. 2
0
 public readonly CoordS ToShort()
 {
     return(CoordS.From((short)X, (short)Y, (short)Z));
 }
 public MapPlayerSpawn(CoordS coord, CoordS rotation)
 {
     this.Coord    = coord;
     this.Rotation = rotation;
 }
 public MapNpc(int id, CoordS coord, CoordS rotation)
 {
     this.Id       = id;
     this.Coord    = coord;
     this.Rotation = rotation;
 }
        public static short Distance(CoordS left, CoordS right)
        {
            CoordS displacement = left - right;

            return(displacement.Length());
        }
Esempio n. 6
0
 public readonly CoordS Add(CoordS other)
 {
     return(From((short)(X + other.X), (short)(Y + other.Y), (short)(Z + other.Z)));
 }
Esempio n. 7
0
 public readonly CoordS ToShort() => CoordS.From((short)X, (short)Y, (short)Z);
Esempio n. 8
0
 public bool Equals(CoordS other) => X == other.X && Y == other.Y && Z == other.Z;
Esempio n. 9
0
 public static short Distance(CoordS left, CoordS right) => (left - right).Length();