Table of Contents

Class TribePreviews.PreviewTile

Namespace
PolyMod.Managers
Assembly
PolyMod.dll

The changes to one tile of a tribe preview map. A mod gives these changes in the preview field of a tribe.

public class TribePreviews.PreviewTile
Inheritance
TribePreviews.PreviewTile
Inherited Members

Fields

improvementType

The new improvement type on the tile. If it is null, PolyMod keeps the improvement. If it is None, PolyMod removes the improvement.

[JsonInclude]
[JsonConverter(typeof(EnumCacheJson<ImprovementData.Type>))]
public ImprovementData.Type? improvementType

Field Value

ImprovementData.Type?

resourceType

The new resource type on the tile. If it is null, PolyMod keeps the resource. If it is None, PolyMod removes the resource.

[JsonInclude]
[JsonConverter(typeof(EnumCacheJson<ResourceData.Type>))]
public ResourceData.Type? resourceType

Field Value

ResourceData.Type?

terrainType

The new terrain type of the tile. If it is None, PolyMod keeps the terrain.

[JsonInclude]
[JsonConverter(typeof(EnumCacheJson<TerrainData.Type>))]
public TerrainData.Type terrainType

Field Value

TerrainData.Type

tileEffects

The new effect types on the tile. If the list is empty, PolyMod keeps the effects. If not, the list replaces all effects of the tile.

[JsonInclude]
[JsonConverter(typeof(EnumCacheListJson<TileData.EffectType>))]
public List<TileData.EffectType> tileEffects

Field Value

List<TileData.EffectType>

unitType

The new unit type on the tile. If it is null, PolyMod keeps the unit. If it is None, PolyMod removes the unit.

[JsonInclude]
[JsonConverter(typeof(EnumCacheJson<UnitData.Type>))]
public UnitData.Type? unitType

Field Value

UnitData.Type?

x

The x coordinate of the tile. If it is null, PolyMod does not change a tile.

[JsonInclude]
public int? x

Field Value

int?

y

The y coordinate of the tile. If it is null, PolyMod does not change a tile.

[JsonInclude]
public int? y

Field Value

int?