d1e8243c47
* Zod EVERYWHERE * Add no-unused-vars rule to eslint in front * Add no-unused-vars rule to eslint in pusher * Add no-unused-vars rule to eslint in back * Remove unused PlayerTexture guards * Fix data providing on room connection Co-authored-by: Alexis Faizeau <a.faizeau@workadventu.re>
12 lines
323 B
TypeScript
12 lines
323 B
TypeScript
import { z } from "zod";
|
|
|
|
export const isButtonClickedEvent = z.object({
|
|
popupId: z.number(),
|
|
buttonId: z.number(),
|
|
});
|
|
|
|
/**
|
|
* A message sent from the game to the iFrame when a user enters or leaves a zone marked with the "zone" property.
|
|
*/
|
|
export type ButtonClickedEvent = z.infer<typeof isButtonClickedEvent>;
|