class_name MobilePort extends RefCounted ## The phone build's switches (the iOS preset in export_presets.cfg; docs/ios-test-port.md): ## * active(): a phone (the "mobile" feature). The farm keeps its standard materials (Main ## doesn't add ToonLook: the outline needs Forward+, phones run the Mobile renderer), the 3D ## view renders at GameSettings.resolution_scale instead of pixelated, co-op is hidden (the ## main menu's button and the settings' Co-op section), and leaving the app pauses the game. ## The microphone is never opened (audio/driver/enable_input.mobile in project.godot). ## * perf_test(): the iOS preset's "perf_test" feature. Main adds PerfTest (the frame-time ## readout and test buttons), and CampaignDebug's jumps work in that release build. ## On desktop, `-- --mobile` and `-- --perf-test` after the usual arguments turn the same switches ## on, to see the phone build without a phone (add --rendering-method mobile for its renderer). static func active() -> bool: return OS.has_feature("mobile") or "--mobile" in OS.get_cmdline_user_args() static func perf_test() -> bool: return OS.has_feature("perf_test") or "--perf-test" in OS.get_cmdline_user_args()