Class PlacableData
[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
idstringkeystringplacementTypePlacementTypecoordinatesCoordinateszoomLevelfloattileXinttileYintnormalizedXfloatnormalizedYfloat
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
keystringplacementTypePlacementTypetileXinttileYintnormalizedXfloatnormalizedYfloatzoomLevelfloat
PlacableData(string, PlacementType, Coordinates, float)
public PlacableData(string key, PlacementType placementType, Coordinates coordinates, float zoomLevel)
Parameters
keystringplacementTypePlacementTypecoordinatesCoordinateszoomLevelfloat
Fields
Coordinates
public Coordinates Coordinates
Field Value
Id
public string Id
Field Value
Key
public string Key
Field Value
NormalizedX
public float NormalizedX
Field Value
NormalizedY
public float NormalizedY
Field Value
Payload
public string Payload
Field Value
PlacementType
public PlacementType PlacementType
Field Value
TileX
public int TileX
Field Value
TileY
public int TileY
Field Value
ZoomLevel
public float ZoomLevel
Field Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(PlacableData)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PlacableData other)
Parameters
otherPlacableDataAn object to compare with this object.
Returns
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()