Base class of buildings.
More...
|
|
Action< OnlineMapsBuildingBase > | OnClick |
| | Events that occur when user click on the building.
|
| |
|
Action< OnlineMapsBuildingBase > | OnDispose |
| | Events that occur when dispose building.
|
| |
|
Action< OnlineMapsBuildingBase > | OnPress |
| | Events that occur when user press on the building.
|
| |
|
Action< OnlineMapsBuildingBase > | OnRelease |
| | Events that occur when user release on the building.
|
| |
|
Bounds | boundsCoords |
| | Geographical coordinates of the boundaries of the building.
|
| |
|
Vector2 | centerCoordinates |
| | Geographical coordinates of the center point.
|
| |
|
string | id |
| | ID of building.
|
| |
|
Vector2 | initialSizeInScene |
| | Initial size of building in scene.
|
| |
|
float | initialZoom |
| | Zoom, in which this building was created.
|
| |
|
MetaInfo[] | metaInfo |
| | Array of building meta key-value pair.
|
| |
|
float | perimeter |
| | Perimeter of building.
|
| |
|
OnlineMapsOSMWay | way |
| | Building way.
|
| |
|
List< OnlineMapsOSMNode > | nodes |
| | Building nodes.
|
| |
|
|
static List< int > | roofIndices |
| | Indices of the roof vertices.
|
| |
|
|
void | OnBasePress () |
| | This method is called when you press a building.
|
| |
|
void | OnBaseRelease () |
| | This method is called when you release a building.
|
| |
|
void | OnMouseDown () |
| | This method is called when you mouse down on a building.
|
| |
|
void | OnMouseUp () |
| | This method is called when you mouse up on a building.
|
| |
|
|
Collider | buildingCollider |
| | Collider of building.
|
| |
|
bool | hasErrors = false |
| | Indicates that the building has an error.
|
| |
◆ RoofType
Type the building's roof.
| Enumerator |
|---|
| dome | Dome roof.
|
| flat | Flat roof.
|
◆ CheckIgnoredBuildings()
| static bool OnlineMapsBuildingBase.CheckIgnoredBuildings |
( |
OnlineMapsOSMWay | way | ) |
|
|
staticprotected |
Checks ignore the building.
- Parameters
-
- Returns
- TRUE - ignore building, FALSE - generate building.
◆ CreateGameObject()
| static GameObject OnlineMapsBuildingBase.CreateGameObject |
( |
OnlineMapsBuildings | container, |
|
|
string | id ) |
|
staticprotected |
Creates a new child GameObject, with the specified name.
- Parameters
-
- Returns
◆ GetLocalPoints()
Converts a list of nodes into an list of points in Unity World Space.
- Parameters
-
- Returns
- List of points in Unity World Space
◆ LoadMeta()
Loads the meta data from the XML.
- Parameters
-
| item | Object that contains meta description. |