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>
14 lines
422 B
TypeScript
14 lines
422 B
TypeScript
import { z } from "zod";
|
|
|
|
// TODO: Change for player Clicked, add all neccessary data
|
|
export const isRemotePlayerClickedEvent = z.object({
|
|
id: z.number(),
|
|
});
|
|
|
|
/**
|
|
* A message sent from the game to the iFrame when RemotePlayer is clicked.
|
|
*/
|
|
export type RemotePlayerClickedEvent = z.infer<typeof isRemotePlayerClickedEvent>;
|
|
|
|
export type RemotePlayerClickedEventCallback = (event: RemotePlayerClickedEvent) => void;
|