class ObjectBuilderAsync
(Niantic.Lightship.Maps.Builders.Performance.ObjectBuilderAsync)
Overview
class ObjectBuilderAsync:
Niantic.Lightship.Maps.Builders.ObjectBuilderBase,
Niantic.Lightship.Maps.Builders.Performance.IObjectBuilderAsync {
public:
// methods
virtual abstract void Build(IReadOnlyList<ObjectTile> tiles) = 0;
};
Inherited Members
public:
// fields
int MinLOD => _minLOD;
int MaxLOD => _maxLOD;
// properties
Guid Id;
int MinLOD;
int MaxLOD;
Guid Id;
// methods
virtual void Initialize(ILightshipMapView lightshipMapView);
GameObject CreateParent(IMapTileObject mapTileObject);
void Release(GameObject parent);
GameObject CreateParent(IMapTileObject mapTileObject);
virtual abstract void Release(GameObject parent) = 0;
void Build(IReadOnlyList<ObjectTile> tiles);
```cs
protected:
// fields
string BuilderName => _builderName.NullIfEmptyOrWhitespace() ?? name;
LayerKind Layer => _mapLayer;
List<FeatureKind> Features => _features;
// properties
Vector3 ZOffset;
// methods
virtual abstract void BuildFeature(
IMapTile mapTile,
GameObject parent,
IMapTileFeature feature
) = 0;
Detailed Documentation
Methods
Build
virtual abstract void Build(IReadOnlyList<ObjectTile> tiles) = 0
Called when a maptile is added to the scene. This method instantiates objects for a specific set of maptile features.