mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-24 00:10:52 +01:00
28 lines
1.4 KiB
TypeScript
28 lines
1.4 KiB
TypeScript
|
import { IDisposable } from '../core/common/disposable/IDisposable';
|
||
|
import { IRoomInstanceContainer } from './IRoomInstanceContainer';
|
||
|
import { IRoomObjectManager } from './IRoomObjectManager';
|
||
|
import { IRoomObject } from './object/IRoomObject';
|
||
|
import { IRoomObjectModel } from './object/IRoomObjectModel';
|
||
|
import { IRoomRendererBase } from './renderer/IRoomRendererBase';
|
||
|
|
||
|
export interface IRoomInstance extends IDisposable
|
||
|
{
|
||
|
setRenderer(renderer: IRoomRendererBase): void;
|
||
|
getManager(category: number): IRoomObjectManager;
|
||
|
getTotalObjectsForManager(category: number): number;
|
||
|
getRoomObject(id: number, category: number): IRoomObject;
|
||
|
getRoomObjectsForCategory(category: number): IRoomObject[];
|
||
|
getRoomObjectByIndex(index: number, category: number): IRoomObject;
|
||
|
createRoomObject(id: number, stateCount: number, type: string, category: number): IRoomObject;
|
||
|
createRoomObjectAndInitalize(objectId: number, type: string, category: number): IRoomObject;
|
||
|
removeRoomObject(id: number, category: number): void;
|
||
|
removeAllManagers(): void;
|
||
|
addUpdateCategory(category: number): void;
|
||
|
removeUpdateCategory(category: number): void;
|
||
|
update(time: number, update?: boolean): void;
|
||
|
id: string;
|
||
|
container: IRoomInstanceContainer;
|
||
|
renderer: IRoomRendererBase;
|
||
|
managers: Map<number, IRoomObjectManager>;
|
||
|
model: IRoomObjectModel;
|
||
|
}
|