landmark_util_serialized¶
Source: base/tealdef/landmarks/landmark_util_serialized.d.tl
Notes
Types of /landmarks/landmark_util_serialized.tl (LandmarkUtilSerialized), the shared update function of the landmark constructions.
LandmarkUtilSerialized¶
record global base/tealdef/landmarks/landmark_util_serialized.d.tl:3
global record LandmarkUtilSerialized
Notes
Landmark construction helper returned by ug_require "::/landmarks/landmark_util_serialized.tl".
Functions
makeLandmarksUpdateFn(generatedData : ConstructionUtilSerialized.GeneratedDataGroup) : function(captureParams : table, params : table) : ConstructionUtilSerialized.ConstructionResult base/tealdef/landmarks/landmark_util_serialized.d.tl:4
Notes
Creates the updateFn of a landmark construction from its generated data.
| Parameter | Type | Description |
|---|---|---|
generatedData |
ConstructionUtilSerialized.GeneratedDataGroup |
Generated data with one group per construction level (level0, level1, ...). |
Returns function(captureParams : table, params : table) : ConstructionUtilSerialized.ConstructionResult: The update function; it builds the subconstruction from the group of the current level and adds stocks, rules, lanes and terminals from captureParams.constructionConfig and miscConfig.