Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Sqm"/> class.
 /// </summary>
 /// <param name="sqmNumber">The SQM number.</param>
 /// <param name="map">The map.</param>
 /// <param name="worldLocation">The world location.</param>
 public Sqm(uint sqmNumber, GraphicsProvider map, Location worldLocation)
 {
     Map = map;
      SqmNumber = sqmNumber;
      Address = Map.SqmNumberToSqmAddress(SqmNumber);
      MemoryLocation = map.GetSqmLocation(SqmNumber);
      WorldLocation = worldLocation;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Sqm"/> class.
 /// </summary>
 /// <param name="sqmNumber">The SQM number.</param>
 /// <param name="map">The map.</param>
 /// <param name="playerSqm">The player SQM.</param>
 public Sqm(uint sqmNumber, GraphicsProvider map, Sqm playerSqm)
 {
     Map = map;
     SqmNumber = sqmNumber;
     Address = Map.SqmNumberToSqmAddress(SqmNumber);
     MemoryLocation = map.GetSqmLocation(SqmNumber);
     WorldLocation = map.MemoryToWorld(MemoryLocation, playerSqm);
 }