public void SetTemporalMarker(BaseCoordinates coordinates, int id) { RemoveTemporalMarker(); temporalAbstractMarker = markerGenerator.GenerateMarker(coordinates); temporalAbstractMarker.Id = id; MapImplementation.AddMarker(temporalAbstractMarker); }
/// <summary> /// Registers the specified type to RTTI map. /// </summary> /// <param name="intType">The interface type.</param> /// <param name="implType">The implementation type.</param> /// <param name="address">The addresses.</param> /// <param name="moduleBase">Current module base address.</param> internal static void Register(Type intType, Type implType, uint[] address, IntPtr moduleBase) { if (intType == null) { throw new ArgumentNullException("intType"); } if (implType == null) { throw new ArgumentNullException("implType"); } if (address == null) { throw new ArgumentNullException("address"); } if (moduleBase == null) { throw new ArgumentNullException("moduleBase"); } if (MapInterface.ContainsKey(intType)) { throw new InvalidOperationException("RTTI for \"" + intType.Name + "\" already exists!"); } if (MapImplementation.ContainsKey(implType)) { throw new InvalidOperationException("RTTI for \"" + implType.Name + "\" already exists!"); } address = address.ToArray(); MapInterface[intType] = new Tuple <Type, uint[], IntPtr>(implType, address, moduleBase); MapImplementation[implType] = new Tuple <Type, uint[], IntPtr>(intType, address, moduleBase); }
public void SetMarkerInMap(BaseCoordinates coordinates) { AbstractMarker marker = markerGenerator.GenerateMarker(coordinates); marker.Location = coordinates; markers.Add(marker); MapImplementation.AddMarker(marker); }
public void createVirtualEarthLayer(string key) { BaseVirtualEarthLayer layer = MapImplementation.createVirtualEarthLayer(); layer.Key = key; MapImplementation.SetActiveVirtualEarthLayer(layer); Layers.Add(layer); }
public void addInputDelegateKeyboard() { MapImplementation.addInputDelegateKeyboard(); }
public void setOriginCoordinates(BaseCoordinates coordinates) { MapImplementation.setOriginCoordinates(coordinates); }
public BaseCoordinates GetReferenceLocation() { return(MapImplementation.GetReferenceLocation()); }
public void EraseMarker(AbstractMarker marker) { MapImplementation.EraseMarker(marker); }
public void createVirtualEarthLayer() { Layers.Add(MapImplementation.createVirtualEarthLayer()); }