impl garage lock request

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 3c4087a35c
commit e5f661d405
7 changed files with 35 additions and 1 deletions
+4
View File
@@ -11,6 +11,7 @@ import { loadServerList } from "./loadServerList";
import { loadStocker } from "./loadStocker";
import { loadTeamRanking } from "./loadTeamRanking";
import { loadTopTen } from "./loadTopTen";
import { lockGarage } from "./lockGarage";
import { lockProfile } from "./lockProfile";
import { saveExpedition } from "./saveExpedition";
import { saveProfile } from "./saveProfile";
@@ -64,6 +65,9 @@ export function dispatch(w: World, req: Request): Response {
case "load_top_ten_req":
return loadTopTen(w, req);
case "lock_garage_request":
return lockGarage(w, req);
case "lock_profile_req":
return lockProfile(w, req);
+10
View File
@@ -0,0 +1,10 @@
import { LockGarageRequest } from "../request/lockGarage";
import { GenericResponse } from "../response/generic";
import { World } from "../world";
export function lockGarage(w: World, req: LockGarageRequest): GenericResponse {
return {
type: "generic_res",
status: 1, // ignored
};
}