This commit is contained in:
2026-06-26 20:42:38 -04:00
commit a332e85658
134 changed files with 17288 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import { getContextPlayerOrThrow } from "data";
import { setPlayerState } from "player-state";
import { HandlerFn, PlayerState } from "types";
export const createGameHandler: HandlerFn = async (ctx) => {
const player = getContextPlayerOrThrow(ctx);
await setPlayerState(player.id, ctx, PlayerState.LOBBY);
};