├── .gitignore ├── LICENSE ├── README.md ├── ToggleTrafficLights.sln ├── docs └── files │ └── img │ ├── Button_Activated.png │ ├── Button_Deactivated.png │ ├── Button_TrafficRoutesJunctions.png │ ├── JunctionToolViews.png │ ├── PreviewImage.png │ ├── TrafficLightsVsNoTrafficLights.pdn │ ├── TrafficRoutesJunctionsView.png │ └── TrafficRoutesJunctionsWindow.png └── src └── ToggleTrafficLights ├── Assets ├── icons.png └── orig │ ├── Icon_Selected.png │ ├── Icon_Unselected.png │ ├── OptionBaseFocusedRed.png │ ├── Selected.png │ ├── TrafficLightsIcon.design │ ├── Unselected.pdn │ └── Unselected.png ├── Game ├── Behaviours │ ├── DebugLevel.cs │ ├── JunctionSettingsBehaviour.cs │ ├── Level.cs │ └── ToggleTrafficLightsButton.cs ├── Options.cs ├── Simulation.cs └── UI │ └── SettingsPanel.cs ├── Mod.cs ├── Serializer ├── SerializerManager.cs ├── SerializerV1.cs └── SerializerV2.cs ├── ToggleTrafficLights.csproj ├── Tools ├── JunctionTool.cs ├── StopSigns.cs ├── TrafficLights.cs └── TrafficLightsHandlingChanger.cs └── Utils ├── CitiesHelper.cs ├── CompilerServices.cs ├── Extensions ├── AttributeExtensions.cs ├── CitiesExtensions.cs ├── ColorExtensions.cs ├── InputKeyExtensions.cs ├── ReflectionExtensions.cs └── StringBuilderExtensions.cs ├── Harmony ├── CodeInstruction.cs ├── CodeTranspiler.cs ├── ILCopying │ ├── ByteBuffer.cs │ ├── Emitter.cs │ ├── ILInstruction.cs │ ├── Memory.cs │ └── MethodCopier.cs ├── MethodPatcher.cs ├── Patch.cs └── Tools │ ├── AccessCache.cs │ ├── AccessTools.cs │ ├── DynamicTools.cs │ ├── Extensions.cs │ └── Traverse.cs ├── KeyHelper.cs ├── Log.cs ├── NetNodeHelper.cs ├── Option.cs ├── ToolHelper.cs ├── UIHelper.cs └── Ui ├── ImguiWindow.cs └── ValueParser.cs /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/README.md -------------------------------------------------------------------------------- /ToggleTrafficLights.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/ToggleTrafficLights.sln -------------------------------------------------------------------------------- /docs/files/img/Button_Activated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/docs/files/img/Button_Activated.png -------------------------------------------------------------------------------- /docs/files/img/Button_Deactivated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/docs/files/img/Button_Deactivated.png -------------------------------------------------------------------------------- /docs/files/img/Button_TrafficRoutesJunctions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/docs/files/img/Button_TrafficRoutesJunctions.png -------------------------------------------------------------------------------- /docs/files/img/JunctionToolViews.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/docs/files/img/JunctionToolViews.png -------------------------------------------------------------------------------- /docs/files/img/PreviewImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/docs/files/img/PreviewImage.png -------------------------------------------------------------------------------- /docs/files/img/TrafficLightsVsNoTrafficLights.pdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/docs/files/img/TrafficLightsVsNoTrafficLights.pdn -------------------------------------------------------------------------------- /docs/files/img/TrafficRoutesJunctionsView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/docs/files/img/TrafficRoutesJunctionsView.png -------------------------------------------------------------------------------- /docs/files/img/TrafficRoutesJunctionsWindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/docs/files/img/TrafficRoutesJunctionsWindow.png -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Assets/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Assets/icons.png -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Assets/orig/Icon_Selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Assets/orig/Icon_Selected.png -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Assets/orig/Icon_Unselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Assets/orig/Icon_Unselected.png -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Assets/orig/OptionBaseFocusedRed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Assets/orig/OptionBaseFocusedRed.png -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Assets/orig/Selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Assets/orig/Selected.png -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Assets/orig/TrafficLightsIcon.design: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Assets/orig/TrafficLightsIcon.design -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Assets/orig/Unselected.pdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Assets/orig/Unselected.pdn -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Assets/orig/Unselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Assets/orig/Unselected.png -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Game/Behaviours/DebugLevel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Game/Behaviours/DebugLevel.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Game/Behaviours/JunctionSettingsBehaviour.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Game/Behaviours/JunctionSettingsBehaviour.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Game/Behaviours/Level.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Game/Behaviours/Level.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Game/Behaviours/ToggleTrafficLightsButton.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Game/Behaviours/ToggleTrafficLightsButton.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Game/Options.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Game/Options.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Game/Simulation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Game/Simulation.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Game/UI/SettingsPanel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Game/UI/SettingsPanel.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Mod.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Mod.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Serializer/SerializerManager.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Serializer/SerializerManager.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Serializer/SerializerV1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Serializer/SerializerV1.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Serializer/SerializerV2.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Serializer/SerializerV2.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/ToggleTrafficLights.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/ToggleTrafficLights.csproj -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Tools/JunctionTool.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Tools/JunctionTool.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Tools/StopSigns.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Tools/StopSigns.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Tools/TrafficLights.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Tools/TrafficLights.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Tools/TrafficLightsHandlingChanger.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Tools/TrafficLightsHandlingChanger.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/CitiesHelper.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/CitiesHelper.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/CompilerServices.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/CompilerServices.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Extensions/AttributeExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Extensions/AttributeExtensions.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Extensions/CitiesExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Extensions/CitiesExtensions.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Extensions/ColorExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Extensions/ColorExtensions.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Extensions/InputKeyExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Extensions/InputKeyExtensions.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Extensions/ReflectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Extensions/ReflectionExtensions.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Extensions/StringBuilderExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Extensions/StringBuilderExtensions.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/CodeInstruction.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/CodeInstruction.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/CodeTranspiler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/CodeTranspiler.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/ILCopying/ByteBuffer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/ILCopying/ByteBuffer.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/ILCopying/Emitter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/ILCopying/Emitter.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/ILCopying/ILInstruction.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/ILCopying/ILInstruction.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/ILCopying/Memory.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/ILCopying/Memory.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/ILCopying/MethodCopier.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/ILCopying/MethodCopier.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/MethodPatcher.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/MethodPatcher.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/Patch.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/Patch.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/Tools/AccessCache.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/Tools/AccessCache.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/Tools/AccessTools.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/Tools/AccessTools.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/Tools/DynamicTools.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/Tools/DynamicTools.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/Tools/Extensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/Tools/Extensions.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Harmony/Tools/Traverse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Harmony/Tools/Traverse.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/KeyHelper.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/KeyHelper.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Log.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Log.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/NetNodeHelper.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/NetNodeHelper.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Option.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Option.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/ToolHelper.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/ToolHelper.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/UIHelper.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/UIHelper.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Ui/ImguiWindow.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Ui/ImguiWindow.cs -------------------------------------------------------------------------------- /src/ToggleTrafficLights/Utils/Ui/ValueParser.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxy/ToggleTrafficLights/HEAD/src/ToggleTrafficLights/Utils/Ui/ValueParser.cs --------------------------------------------------------------------------------