NMV 0.8.0 - Big refactor and linting fixes

This commit is contained in:
Casper Warden
2025-01-17 23:37:54 +00:00
parent 3870861b0a
commit 53659008ac
210 changed files with 17588 additions and 18300 deletions

View File

@@ -1,17 +1,18 @@
import { RBush3D } from 'rbush-3d/dist';
import { UUID } from '../UUID';
import { GameObject } from '../public/GameObject';
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): Promise<GameObject[]>;
getObjectByUUID(fullID: UUID): GameObject;
getObjectByLocalID(ID: number): GameObject;
getNumberOfObjects(): number;
getAllObjects(): Promise<GameObject[]>;
setPersist(persist: boolean): void;
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;
}