20 lines
396 B
TypeScript
20 lines
396 B
TypeScript
import z from "zod";
|
|
import { SocketTarget } from "./targetbase.ts";
|
|
|
|
export class PlayerSocketSubscriptionTarget extends SocketTarget {
|
|
|
|
#ids: number[] = [];
|
|
|
|
override zod = z.object({
|
|
PlayerIds: z.array(z.number().nonnegative().max(Math.pow(2, 31)))
|
|
});
|
|
|
|
override exec(...ids: number[]) {
|
|
this.#ids = ids;
|
|
}
|
|
|
|
getIds() {
|
|
return this.#ids;
|
|
}
|
|
|
|
} |