core_trafficSignalsfunction getControllerByName(name) -- returns the signal controller via the given namefunction getControllerDefinitions() -- returns all controller definitionsfunction getControllers() -- returns the array of signal controllersfunction getData(full) -- returns relevant data from this modulefunction getElementById(id) -- returns the element (instance, controller, or sequence) via its unique idfunction getMapNodeSignals() -- returns the processed dict of map nodes relating to signalsfunction getSequenceByName(name) -- returns the signal sequence via the given namefunction getSequences() -- returns the array of signal sequencesfunction getInstanceByName(name) -- returns the signal instance via the given namefunction getInstances() -- returns the array of signal instancesfunction nop()function getTimer() -- returns the elapsed time valuefunction loadControllerDefinitions(filePath) -- loads default and custom controller definitionsfunction loadSignals(filePath) -- loads signals json file from given file path or default file pathfunction newController(data)function newSequence(data)function newInstance(data)function onClientEndMission()function onClientStartMission()function onDeserialized(data)function onNavgraphReloaded() -- reloads all signals (if system is active)function onSerialize()function onUpdate(dt, dtSim)function resetControllerDefinitions() -- resets vital controller definitions back to defaultfunction resetSignals() -- clears signalsfunction resetTimer() -- resets the timer & queue, and activates the sequencesfunction setActive(val, autoRun) -- sets the timer active statefunction setControllerDefinitions(data) -- sets custom controller states and types (e.g. custom traffic light phase)function setLightsManual(id, stateArray) -- directly sets the visible lights of a traffic signal object (will not affect actual state)function setTimer(val) -- directly sets the timer, which can instantly update the signal statesfunction setupSignalObjects() -- sets and caches the table of TSStatics that are used as signalsfunction setupSignals(data, merge) -- processes and enables the signals system; can merge with existing ones