class ObjectTile
(Niantic.Lightship.Maps.MapTileObjectHelpers.ObjectTile)
Overview
An ObjectBuilderAsync-friendly wrapper for relevant MapTile references.
class ObjectTile: Niantic.Lightship.Maps.MapTileObjectHelpers.ITilePair {
public:
// fields
IMapTileObject TileObject => _tilePair.TileObject;
IMapTile Tile => _tilePair.Tile;
readonly GameObject Parent;
// methods
void MarkBuilderComplete(IFeatureBuilder builder);
ObjectTile(TilePair tilePair, GameObject parent);
};
Inherited Members
public:
// properties
IMapTileObject TileObject;
IMapTile Tile;
// methods
void MarkBuilderComplete(IFeatureBuilder builder);
Detailed Documentation
An ObjectBuilderAsync-friendly wrapper for relevant MapTile references.
Fields
Parent
readonly GameObject Parent
The GameObject this tile's features will be built under.
Methods
MarkBuilderComplete
void MarkBuilderComplete(IFeatureBuilder builder)
Notifies the tile that the builder has finished building it or will no longer build it (i.e., due to cancellation or exception handling)
ObjectTile
ObjectTile(TilePair tilePair, GameObject parent)
Associates a TilePair with the GameObject used for a given ObjectBuilderAsync.
Parameters:
tilePair
- Represents the pairing of a IMapTileObject and the IMapTile whose features will be built on it.
parent
- The GameObject parenting the features for a given ObjectBuilderAsync on the corresponding IMapTileObject.