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,20 +1,20 @@
import { PCode } from '../../enums/PCode';
import { SoundFlags } from '../../enums/SoundFlags';
import { GameObject } from '../public/GameObject';
import { UUID } from '../UUID';
import { Vector3 } from '../Vector3';
import { Color4 } from '../Color4';
import { Quaternion } from '../Quaternion';
import { Vector4 } from '../Vector4';
import { Tree } from '../../enums/Tree';
import { ParticleSystem } from '../ParticleSystem';
import { NameValue } from '../NameValue';
import { TextureEntry } from '../TextureEntry';
import { FlexibleData } from '../public/FlexibleData';
import { LightData } from '../public/LightData';
import { LightImageData } from '../public/LightImageData';
import { SculptData } from '../public/SculptData';
import { MeshData } from '../public/MeshData';
import type { PCode } from '../../enums/PCode';
import type { SoundFlags } from '../../enums/SoundFlags';
import type { GameObject } from '../public/GameObject';
import type { UUID } from '../UUID';
import type { Vector3 } from '../Vector3';
import type { Color4 } from '../Color4';
import type { Quaternion } from '../Quaternion';
import type { Vector4 } from '../Vector4';
import type { Tree } from '../../enums/Tree';
import type { ParticleSystem } from '../ParticleSystem';
import type { NameValue } from '../NameValue';
import type { TextureEntry } from '../TextureEntry';
import type { FlexibleData } from '../public/FlexibleData';
import type { LightData } from '../public/LightData';
import type { LightImageData } from '../public/LightImageData';
import type { SculptData } from '../public/SculptData';
import type { MeshData } from '../public/MeshData';
export interface IGameObjectData
{
@@ -61,7 +61,7 @@ export interface IGameObjectData
ParentID?: number;
OwnerID: UUID;
IsAttachment: boolean;
NameValue: { [key: string]: NameValue };
NameValue: Map<string, NameValue>;
PCode: PCode;
State?: number;
CRC?: number;

View File

@@ -1,6 +1,6 @@
import { LandFlags } from '../../enums/LandFlags';
import { LandType } from '../../enums/LandType';
import type { LandFlags } from '../../enums/LandFlags';
import type { LandType } from '../../enums/LandType';
export interface ILandBlock
{
landType: LandType;

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;
}

View File

@@ -1,5 +1,5 @@
import { GameObject } from '../..';
import { GetObjectsOptions } from '../commands/RegionCommands';
import type { GameObject } from '../..';
import type { GetObjectsOptions } from '../commands/RegionCommands';
export interface IResolveJob
{

View File

@@ -1,5 +1,5 @@
import { BBox } from 'rbush-3d/dist';
import { GameObject } from '../public/GameObject';
import type { BBox } from 'rbush-3d/dist';
import type { GameObject } from '../public/GameObject';
export interface ITreeBoundingBox extends BBox
{