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>
16 lines
365 B
TypeScript
16 lines
365 B
TypeScript
import { z } from "zod";
|
|
|
|
export const isSetTilesEvent = z.array(
|
|
z.object({
|
|
x: z.number(),
|
|
y: z.number(),
|
|
tile: z.union([z.number(), z.string(), z.null()]),
|
|
layer: z.string(),
|
|
})
|
|
);
|
|
|
|
/**
|
|
* A message sent from the iFrame to the game to set one or many tiles.
|
|
*/
|
|
export type SetTilesEvent = z.infer<typeof isSetTilesEvent>;
|