Home › Lua API › WorldBuilderMapManager

Available out of the box. Usable from Lua in the unmodified game.

WorldBuilderMapManager

24 methods. Symbol/current columns are function addresses (RVA) of the native wrapper.

Signatures are recovered from the game code. ⚠ = partly understood (arguments may be missing or approximate). ? after a name = optional argument. Types: integer/number are Lua numbers, enum-typed arguments show the C++ type in brackets. Two signatures mean the method is registered separately for the UI and the gameplay state and each wrapper was decoded on its own. "same code as" in the Symbol column means the compiler merged identical functions: those methods share one wrapper and cannot be told apart by address.

Method Signature Where Reference Symbol Current
CanPlaceFeature WorldBuilderMapManager:CanPlaceFeature(x: integer/Plot, y?: integer) → boolean
args: x — Plot index (named plotIndex / plotID in the scripts). (inferred)
gameplay — 0x5f2940 0x5f3490
CanPlaceImprovement WorldBuilderMapManager:CanPlaceImprovement(x: integer/Plot, y?: integer, arg3?: integer) → boolean
args: arg3 — Id of a player.
gameplay — 0x5f2ad0 0x5f3620
CanPlaceResource WorldBuilderMapManager:CanPlaceResource(x: integer/Plot, y?: integer) → boolean
args: x — Plot index (named plotIndex / plotID in the scripts). (inferred)
gameplay — 0x5f2c20 0x5f3770
DoesPlotBorderRiver WorldBuilderMapManager:DoesPlotBorderRiver(x: integer/Plot, y?: integer) → boolean
args: x — Plot index (plot:GetIndex()). (inferred)
gameplay — 0x5f2d40 0x5f3890
EditCliff WorldBuilderMapManager:EditCliff(x: integer/Plot, y?: integer) → boolean
args: x — Plot index (named plotIndex / plotID in the scripts). (inferred)
gameplay — 0x5f2de0 0x5f3930
EditRiver WorldBuilderMapManager:EditRiver(x: integer/Plot, y?: integer) → boolean, number
args: x — Plot index (named plotIndex / plotID in the scripts). (inferred)
gameplay — 0x5f2f10 0x5f3a60
GetContinentPlots WorldBuilderMapManager:GetContinentPlots(arg1?: number) → table/nil gameplay — 0x5f3050 0x5f3ba0
GetDimensionsFromTiled WorldBuilderMapManager:GetDimensionsFromTiled() → number, number gameplay — 0x5f31c0 0x5f3d10
GetFeaturePlacementPlotList WorldBuilderMapManager.GetFeaturePlacementPlotList(arg1?: any, x: integer/Plot, y?: integer) → number[] (or nothing) ⚠ gameplay — 0x5f33e0 0x5f3f30
GetPlotValue WorldBuilderMapManager:GetPlotValue(iPlotIndex?: any, ePropertyType: number/string[Types], pszName?: string) → 1 values (or nothing) ⚠
touches (inferred from the code): reads WorldBuilder::Map::Manager::m_kValueHandlers
gameplay — 0x5f35d0 0x5f4120
IsImprovementPlaceable WorldBuilderMapManager.IsImprovementPlaceable(arg1?: any, arg2: number/string) → boolean ⚠ gameplay — 0x5f36e0 0x5f4230
IsWonderTooClose WorldBuilderMapManager:IsWonderTooClose(x: integer/Plot, y?: integer) → boolean
args: x — Plot index (named plotIndex / plotID in the scripts). (inferred)
gameplay — 0x5f37e0 0x5f4330
LoadPlotsFromTiled WorldBuilderMapManager:LoadPlotsFromTiled() (or nothing) gameplay — 0x5f38d0 0x5f4420
SetAllRevealed WorldBuilderMapManager:SetAllRevealed(bRevealed: boolean, ePlayer: integer[PlayerTypes]) → boolean
args: bRevealed — A boolean flag (true/false). (inferred); ePlayer — Id of a player (as in Players[id]).
gameplay — 0x5f4eb0 0x5f5a00
SetCoastalLowland WorldBuilderMapManager:SetCoastalLowland(x: integer/Plot, y?: integer) → boolean gameplay — 0x5f4f50 0x5f5aa0
SetContinentType WorldBuilderMapManager:SetContinentType(x: integer/Plot, y?: integer) → boolean gameplay — 0x5f5040 0x5f5b90
SetFeatureType WorldBuilderMapManager:SetFeatureType(x: integer/Plot, y?: integer) → boolean gameplay — 0x5f5100 0x5f5c50
SetImprovementPillaged WorldBuilderMapManager:SetImprovementPillaged(x: integer/Plot, y?: integer) → boolean gameplay — 0x5f5260 0x5f5db0
SetImprovementType WorldBuilderMapManager:SetImprovementType(x: integer/Plot, y?: integer, arg3?: integer) → boolean gameplay — 0x5f5360 0x5f5eb0
SetPlotValue WorldBuilderMapManager:SetPlotValue(arg1?: any, ePropertyType: number/string[Types]) (or nothing) ⚠
args: ePropertyType — A string.
touches (inferred from the code): reads WorldBuilder::Map::Manager::m_kValueHandlers
gameplay — 0x5f5460 0x5f5fb0
SetResourceType WorldBuilderMapManager:SetResourceType(x: integer/Plot, y?: integer, arg3?: integer) → boolean gameplay — 0x5f55c0 0x5f6110
SetRevealed WorldBuilderMapManager:SetRevealed(x: integer/Plot, y?: integer, arg3?: integer) → boolean
args: x — Plot index (named plotIndex / plotID in the scripts). (inferred)
gameplay — 0x5f56b0 0x5f6200
SetRouteType WorldBuilderMapManager:SetRouteType(x: integer/Plot, y?: integer) → boolean gameplay — 0x5f57a0 0x5f62f0
SetTerrainType WorldBuilderMapManager:SetTerrainType(x: integer/Plot, y?: integer) → boolean gameplay — 0x5f58a0 0x5f63f0