assorted shit

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent c79c1b870d
commit 8d74a0dc0e
15 changed files with 53 additions and 15 deletions
+4
View File
@@ -27,6 +27,7 @@ import { updateResult } from "./updateResult";
import { updateStoryClearNum } from "./updateStoryClearNum";
import { updateTeamPoints } from "./updateTeamPoints";
import { updateUiReport } from "./updateUiReport";
import { updateUserLog } from "./updateUserLog";
import { Request } from "../request";
import { Response } from "../response";
import { World } from "../world";
@@ -123,6 +124,9 @@ export async function dispatch(w: World, req: Request): Promise<Response> {
case "update_ui_report_req":
return updateUiReport(w, req);
case "update_user_log_req":
return updateUserLog(w, req);
default:
const exhaustCheck: never = req;
+1
View File
@@ -21,6 +21,7 @@ export async function loadProfile(
name: profile.name,
profileId: profile.id,
lv: profile.lv,
exp: profile.exp,
fame: profile.fame,
dpoint: profile.dpoint,
teamId: profile.teamId,
+1
View File
@@ -16,6 +16,7 @@ export async function saveProfile(
fame: req.fame,
dpoint: req.dpoint,
}),
w.car().save(req.profileId, req.car),
w.story().save(req.profileId, req.story),
w.titles().save(req.profileId, req.titles),
]);
+10
View File
@@ -0,0 +1,10 @@
import { UpdateUserLogRequest } from "../request/updateUserLog";
import { GenericResponse } from "../response/generic";
import { World } from "../world";
export function updateUserLog(
w: World,
req: UpdateUserLogRequest
): GenericResponse {
return { type: "generic_res" };
}