返回提交历史
Modified
src/controllers/custom/tunablesController.ts
+14
-6
XFEstudio/SpaceNinjaServer
chore: update tunablesController (#901)
Reviewed-on: http://209.141.38.3/OpenWF/SpaceNinjaServer/pulls/901
8633696d
代码差异
1 个文件
+14
-6
@@ -1,15 +1,23 @@
1
1
import { RequestHandler } from "express";
2
2
3
// This endpoint is specific to the OpenWF Bootstrapper: https://openwf.io/bootstrapper-manual
4
3
5
interface ITunables {
4
prohibit_skip_mission_start_timer?: any;
5
prohibit_fov_override?: any;
6
prohibit_skip_mission_start_timer?: boolean;
7
prohibit_fov_override?: boolean;
8
prohibit_freecam?: boolean;
9
prohibit_teleport?: boolean;
10
prohibit_scripts?: boolean;
6
11
}
7
12
8
13
const tunablesController: RequestHandler = (_req, res) => {
9
const tunablesSet: ITunables = {};
10
//tunablesSet.prohibit_skip_mission_start_timer = 1;
11
//tunablesSet.prohibit_fov_override = 1;
12
res.json(tunablesSet);
14
const tunables: ITunables = {};
15
//tunables.prohibit_skip_mission_start_timer = true;
16
//tunables.prohibit_fov_override = true;
17
//tunables.prohibit_freecam = true;
18
//tunables.prohibit_teleport = true;
19
//tunables.prohibit_scripts = true;
20
res.json(tunables);
13
21
};
14
22
15
23
export { tunablesController };