Files

19 lines
791 B
TypeScript
Raw Permalink Normal View History

import type { RBush3D } from 'rbush-3d/dist';
import type { UUID } from '../UUID';
import type { GameObject } from '../public/GameObject';
import type { GetObjectsOptions } from '../commands/RegionCommands';
export interface IObjectStore
{
rtree?: RBush3D;
populateChildren: (obj: GameObject) => void;
getObjectsByParent: (parentID: number) => GameObject[];
shutdown: () => void;
getObjectsInArea: (minX: number, maxX: number, minY: number, maxY: number, minZ: number, maxZ: number) => GameObject[];
getObjectByUUID: (fullID: UUID) => GameObject;
getObjectByLocalID: (ID: number) => GameObject;
getNumberOfObjects: () => number;
getAllObjects: (options: GetObjectsOptions) => GameObject[];
setPersist: (persist: boolean) => void;
}