Table of Contents

Class PlacableData

Namespace
WitShells.MapView
[Serializable]
public class PlacableData : IEquatable<PlacableData>
Inheritance
PlacableData
Implements
Inherited Members

Constructors

PlacableData()

public PlacableData()

PlacableData(string, string, PlacementType, Coordinates, float, int, int, float, float)

public PlacableData(string id, string key, PlacementType placementType, Coordinates coordinates, float zoomLevel, int tileX, int tileY, float normalizedX, float normalizedY)

Parameters

id string
key string
placementType PlacementType
coordinates Coordinates
zoomLevel float
tileX int
tileY int
normalizedX float
normalizedY float

PlacableData(string, PlacementType, int, int, float, float, float)

public PlacableData(string key, PlacementType placementType, int tileX, int tileY, float normalizedX, float normalizedY, float zoomLevel)

Parameters

key string
placementType PlacementType
tileX int
tileY int
normalizedX float
normalizedY float
zoomLevel float

PlacableData(string, PlacementType, Coordinates, float)

public PlacableData(string key, PlacementType placementType, Coordinates coordinates, float zoomLevel)

Parameters

key string
placementType PlacementType
coordinates Coordinates
zoomLevel float

Fields

Coordinates

public Coordinates Coordinates

Field Value

Coordinates

Id

public string Id

Field Value

string

Key

public string Key

Field Value

string

NormalizedX

public float NormalizedX

Field Value

float

NormalizedY

public float NormalizedY

Field Value

float

Payload

public string Payload

Field Value

string

PlacementType

public PlacementType PlacementType

Field Value

PlacementType

TileX

public int TileX

Field Value

int

TileY

public int TileY

Field Value

int

ZoomLevel

public float ZoomLevel

Field Value

float

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(PlacableData)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PlacableData other)

Parameters

other PlacableData

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetLatLon()

public (double Lat, double Lon) GetLatLon()

Returns

(double, double)