class AdminBridge extends GSInfo { function GetAuthor() { return "Gemini"; } function GetName() { return "AdminBridge"; } function GetShortName() { return "ADMB"; } function GetDescription() { return "Answers JSON commands from the admin port on behalf of an admin client."; } /* Bridge protocol version. Must equal BRIDGE_VERSION in main.nut, which is what the * get_version command reports; tests/test_gamescript.py pins the two together and to * openttd.protocol.GS_BRIDGE_VERSION. Bump it whenever the JSON protocol changes. */ function GetVersion() { return 4; } /* Any version of this script can take over from any older one: the bridge keeps no * savegame state of its own (it has no Save()), so there is nothing to migrate. Without * this, the default is GetVersion(), and loading a savegame that pinned an older version * makes the engine fall back with a "no longer available" warning. */ function MinVersionToLoad() { return 1; } function GetAPIVersion() { return "1.10"; } function GetDate() { return "2026-08-31"; } function CreateInstance() { return "AdminBridge"; } } RegisterGS(AdminBridge());