NMV 0.8.0 - Big refactor and linting fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user