UNPKG

moomooio-client

Version:

MooMooIO-Client is a client-side wrapper API designed for the game MooMoo.io. This package aims to provide a simple yet powerful API for creating clones, mods, or plugins for MooMoo.io.

21 lines (16 loc) 678 B
import { z } from "zod"; const schema = z.tuple([z.number()]); /** * @packet-id "12" * @description **RemoveObject** instructs which object need to be removed. This usually means that the object has been **destroyed**. * @member `objectID` is a special number that helps identify the object that needs to be removed. */ export default class RemoveObject { public static readonly PACKET_ID = "12"; public static readonly PACKET_NAME = "RemoveObject"; public readonly PACKET_NAME = "RemoveObject"; constructor(readonly objectID: number) {} static parse(data: unknown): RemoveObject { return new RemoveObject(schema.parse(data)[0]); } }