Scripting Overview

advanced scripting

World Map Strategy Kit · Scripting Support (C#)

Class: All members on this page belong to the WMSK component (namespace WorldMapStrategyKit). Access via WMSK.instance.
Tip: Check the demo scenes included with the asset for practical examples covering countries, provinces, cities, cells, pathfinding, units, and fog of war.

Getting Started

Add using WorldMapStrategyKit; at the top of your script. Access the map singleton with:

using WorldMapStrategyKit;

WMSK map = WMSK.instance;

Data Structures

Country

Country data. Key fields: name, continent, center (Vector2), regions (List<Region>), provinces (Province[]), hidden, customLabel, labelColor, attrib (JSONObject).

Province

Province/state data. Key fields: name, countryIndex, center, regions, attrib (JSONObject).

City

City data. Fields: name, province, countryIndex, unity2DLocation, population, cityClass.

Cell

Grid cell. Fields: index, center, tag, canCross, visible, group.

API Reference Sections

The WMSK API is organized into the following sections:

Was this page helpful?