Begin garage ops
This commit is contained in:
@@ -6,6 +6,7 @@ import { discoverProfile } from "./discoverProfile";
|
||||
import { load2on2 } from "./load2on2";
|
||||
import { loadConfig } from "./loadConfig";
|
||||
import { loadConfig2 } from "./loadConfig2";
|
||||
import { loadGarage } from "./loadGarage";
|
||||
import { loadGeneralReward } from "./loadGeneralReward";
|
||||
import { loadGhost } from "./loadGhost";
|
||||
import { loadProfile } from "./loadProfile";
|
||||
@@ -19,6 +20,7 @@ import { lockProfile } from "./lockProfile";
|
||||
import { msg00AD } from "./msg00AD";
|
||||
import { saveExpedition } from "./saveExpedition";
|
||||
import { saveGarage } from "./saveGarage";
|
||||
import { saveNewCar } from "./saveNewCar";
|
||||
import { saveProfile } from "./saveProfile";
|
||||
import { saveSettings } from "./saveSettings";
|
||||
import { saveStocker } from "./saveStocker";
|
||||
@@ -61,6 +63,9 @@ export async function dispatch(w: World, req: Request): Promise<Response> {
|
||||
case "discover_profile_req":
|
||||
return discoverProfile(w, req);
|
||||
|
||||
case "load_garage_req":
|
||||
return loadGarage(w, req);
|
||||
|
||||
case "load_general_reward_req":
|
||||
return loadGeneralReward(w, req);
|
||||
|
||||
@@ -103,6 +108,9 @@ export async function dispatch(w: World, req: Request): Promise<Response> {
|
||||
case "save_garage_req":
|
||||
return saveGarage(w, req);
|
||||
|
||||
case "save_new_car_req":
|
||||
return saveNewCar(w, req);
|
||||
|
||||
case "save_profile_req":
|
||||
return saveProfile(w, req);
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Car } from "../model";
|
||||
import { LoadGarageRequest } from "../request/loadGarage";
|
||||
import { LoadGarageResponse } from "../response/loadGarage";
|
||||
import { World } from "../world";
|
||||
import { loadJson } from "../world/_util";
|
||||
|
||||
export async function loadGarage(
|
||||
w: World,
|
||||
req: LoadGarageRequest
|
||||
): Promise<LoadGarageResponse> {
|
||||
throw new Error("TODO");
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { SaveNewCarRequest } from "../request/saveNewCar";
|
||||
import { SaveNewCarResponse } from "../response/saveNewCar";
|
||||
import { World } from "../world";
|
||||
|
||||
export function saveNewCar(
|
||||
w: World,
|
||||
req: SaveNewCarRequest
|
||||
): SaveNewCarResponse {
|
||||
return {
|
||||
type: "save_new_car_res",
|
||||
status: 0,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user