Scripting Overview
advanced scriptingWorld 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:
- Events & Interaction — All events for country, province, city, cell, pathfinding, and general map interaction
- Countries API — Country properties, query methods, manipulation, and surface effects
- Provinces API — Province properties and methods
- Cities API — City properties and methods
- Cells API — Grid/cell properties and methods
- Mount Points API — Mount point methods
- Labels API — Label customization methods
- Markers API — Marker and line drawing methods
- Navigation API — Camera control, fly-to methods, zoom
- Viewport API — Viewport-specific methods
- Pathfinding API — Pathfinding methods and properties
- Fog of War API — Fog of war methods
- Tiles API — Tile system methods
- Earth API — Earth/map manipulation, coordinate conversion
Was this page helpful?
Suggest an improvement
Help us improve this documentation page.