Skip to content

mission_task_connect_nodes

Source: base/tealdef/mission/tasks/connect_nodes/mission_task_connect_nodes.d.tl

Notes

Task that only allows street or track proposals that connect given nodes.

MissionTaskConnectNodes

record global base/tealdef/mission/tasks/connect_nodes/mission_task_connect_nodes.d.tl:3

global record MissionTaskConnectNodes is MissionInterface.TaskScript<MissionTaskConnectNodes.State, MissionTaskConnectNodes.Params>

Load: local connect_nodes = ug_require "::/mission/tasks/connect_nodes/connect_nodes.tl"

Notes

Task (connect_nodes) that blocks every street or track proposal that does not connect one of the configured node pairs (the bulldozer stays allowed). It completes when all pairs were connected.

MissionTaskConnectNodes.Mode

enum base/tealdef/mission/tasks/connect_nodes/mission_task_connect_nodes.d.tl:4

enum Mode

Notes

Tool the player must use.

Value Description
"Tracks" Only the track builder.
"Street" Only the street builder.

MissionTaskConnectNodes.Config

record base/tealdef/mission/tasks/connect_nodes/mission_task_connect_nodes.d.tl:8

record Config

Notes

One connection to build (checked with api.engine.util.proposal.checkProposalConnectsNodes).

Used in the base game: 1 time in 1 file

base/content/mission/mission/tasks/connect_nodes/connect_nodes.tl:71

local isValid = function(config : MissionTaskConnectNodes.Config) : boolean

Fields

Name Type Description
startNode Engine.Entity Start node.
startEdge Engine.Entity Edge at the start node.
targetNode Engine.Entity Target node.

MissionTaskConnectNodes.Params

record base/tealdef/mission/tasks/connect_nodes/mission_task_connect_nodes.d.tl:13

record Params

Notes

Params of the task.

Used in the base game: 3 times in 3 files

base/content/mission/mission/tasks/connect_nodes/connect_nodes.tl:4

local type P = MissionTaskConnectNodes.Params
mods/release/urbangames_campaign_mission_02/content/mission/mission/mission_story.tl:1055
taskParams : MissionTaskConnectNodes.Params = {
mods/release/urbangames_campaign_mission_01/content/mission/mission/mission_story.tl:2157
taskParams : MissionTaskConnectNodes.Params = {

Fields

Name Type Description
mode Mode Tool the player must use.
configs {Config} Connections to build.
renderZonesForEntities {{MissionInterface.PosRadius, MissionInterface.PosRadius}} Area pair drawn per connection (required); pos[3] is the zone height.

MissionTaskConnectNodes.State

record base/tealdef/mission/tasks/connect_nodes/mission_task_connect_nodes.d.tl:19

record State

Notes

State of the task.

Used in the base game: 1 time in 1 file

base/content/mission/mission/tasks/connect_nodes/connect_nodes.tl:3

local type S = MissionTaskConnectNodes.State

Fields

Name Type Description
complete {boolean} Per connection, whether it was built.