assorted shit
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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),
|
||||
]);
|
||||
|
||||
@@ -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" };
|
||||
}
|
||||
Reference in New Issue
Block a user