nitro-renderer/packages/api/src/room/IRoomManager.ts
2024-03-19 21:53:17 -04:00

17 lines
699 B
TypeScript

import { IRoomInstance } from './IRoomInstance';
import { IRoomManagerListener } from './IRoomManagerListener';
import { IRoomObject } from './object';
export interface IRoomManager
{
init(listener: IRoomManagerListener): Promise<void>;
getRoomInstance(roomId: string): IRoomInstance;
createRoomInstance(roomId: string): IRoomInstance;
removeRoomInstance(roomId: string): boolean;
addUpdateCategory(category: number): void;
removeUpdateCategory(category: number): void;
createRoomObjectAndInitalize(roomId: string, objectId: number, type: string, category: number): IRoomObject;
update(time: number, update?: boolean): void;
rooms: Map<string, IRoomInstance>;
}