diff --git a/templates/bootstrap/server/impl.ts.hbs b/templates/bootstrap/server/impl.ts.hbs index d0efb8d5..1000452b 100644 --- a/templates/bootstrap/server/impl.ts.hbs +++ b/templates/bootstrap/server/impl.ts.hbs @@ -27,14 +27,17 @@ export class Impl implements Methods { {{/with}} } {{#each methods}} + {{@key}}(state: InternalState, userId: UserId, ctx: Context, request: {{makeRequestName @key}}): Response { return Response.error("Not implemented"); } {{/each}} + getUserState(state: InternalState, userId: UserId): {{userState}} { return state; } {{#if tick}} + onTick(state: InternalState, ctx: Context, timeDelta: number): void {} {{/if}} }