X Tutup

Config & Serialization

advanced scripting

Terrain Grid System 2 · Scripting Support (C#)

Note: This is an exhaustive index of public members for this API area. Signatures may vary by version; rely on your IDE/autocomplete and the source if needed.

API Reference

Config Classes

struct TGSConfigAttribPair
struct TGSConfigEntry

TGSConfigEntry Properties

TGSConfigAttribPair[] attribData

Attrib data.

bool canCross

If this cell blocks path finding.

bool canCross

Can cross.

int cellIndex

Cell index.

int cellIndex

Cell index.

TGSConfigEntry[] cellSettings

Cell settings.

Color color

Color.

Color color

Color.

string config

Config.

string filterTerritories

Filter territories.

string key

Key.

float numericValue

Numeric value.

bool storeCellIndices

Store cell indices.

string stringValue

String value.

int tag

Optional value that can be set with CellSetTag. You can later get the cell quickly using CellGetWithTag method.

int tag

Tag.

short territoryIndex

The territory to which this cell belongs to. You can change it using CellSetTerritory method. WARNING: do not change this value directly, use CellSetTerritory instead.

int territoryIndex

Territory index.

int territoryIndex

Territory index.

int territoryIndex

Territory index.

int textureIndex

Texture index.

textureOffset

Description not found in source.

string title

Title.

bool visible

Visible.

bool visible

Returns the actual visibility state of the cell. The setter will set only visibleSelf and not visibleByRules or visibleAlways.

bool visible

Visible.

bool visibleAlways

Gets or sets whether the cell is always visible, regardless of other rules.

bool visibleAlways

Visible always.

Save & Load Methods

void LoadConfiguration()

Call this method to force a configuration load.

void SaveConfiguration(TerrainGridSystem tgs)

Stores current grid configuration in this component

Entry Manipulation

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Clears all references to all other triangles and points

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear(T value)

Performs clear.

void Clear()

Performs clear.

void Clear(bool value)

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

void Clear()

Performs clear.

class TGSConfig : MonoBehavior

Enums

enum ApplyMode
ApplyMode ConfigApplyMode

Config apply mode.

Was this page helpful?
X Tutup