Skip to main content

class GroundBuilder

(Niantic.Lightship.Maps.Builders.Standard.Ground.GroundBuilder)

Overview

A builder that generates a base ground mesh covering the entire maptile

class GroundBuilder:
Niantic.Lightship.Maps.Builders.Standard.MeshBuilderStandard,
Niantic.Lightship.Maps.Builders.Standard.IMeshBuilderStandard {
public:
// methods

override void Build(IMapTile mapTile, MeshFilter meshFilter);
};

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);
MeshFilter CreateMeshComponents(IMapTileObject mapTileObject);
void Release(MeshFilter meshFilter);
MeshFilter CreateMeshComponents(IMapTileObject mapTileObject);
virtual void Release(MeshFilter meshFilter);
void Build(IMapTile mapTile, MeshFilter meshFilter);
virtual abstract void Build(IMapTile mapTile, MeshFilter meshFilter) = 0;

```cs
protected:
// fields

string BuilderName => _builderName.NullIfEmptyOrWhitespace() ?? name;
LayerKind Layer => _mapLayer;
List<FeatureKind> Features => _features;
Material[] _materials;

// properties

Vector3 ZOffset;

// methods

static void SetMeshForFilter(Mesh mesh, MeshFilter meshFilter);

Detailed Documentation

A builder that generates a base ground mesh covering the entire maptile

Methods

Build

override void Build(IMapTile mapTile, MeshFilter meshFilter)

Returns the mesh for the ground layer, which is always the unit square covering the tile.