MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / _link_override_pairs

Function _link_override_pairs

Scripts/parse_headers.py:673–681  ·  view source on GitHub ↗

Link bOverride_X toggles to their guarded properties.

(cls: ParsedClass)

Source from the content-addressed store, hash-verified

671
672
673def _link_override_pairs(cls: ParsedClass):
674 """Link bOverride_X toggles to their guarded properties."""
675 toggle_props = {p['name']: p for p in cls.properties if p.get('is_override_toggle')}
676 for prop in cls.properties:
677 ec = prop.get('edit_condition', '')
678 if ec and ec in toggle_props:
679 prop['override_guarded_property'] = '' # this prop is guarded by ec
680 # Mark the toggle with the guarded name
681 toggle_props[ec]['override_guarded_property'] = prop['name']
682
683
684# ──────────────────────────────────────────────────────────────────────────────

Callers 1

_parse_bodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected