- Implement camera controls
- Option to resolve object properties when fetching from object store (names, descriptions etc). Can be more efficient - TODO: use FamilyProperties for child prims. - Refactored objectstore to reduce code duplication
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
import {ITreeBoundingBox} from './ITreeBoundingBox';
|
||||
import {UUID} from '../UUID';
|
||||
import {PCode} from '../../enums/PCode';
|
||||
|
||||
export interface IGameObject
|
||||
{
|
||||
ID: number;
|
||||
FullID: UUID;
|
||||
ParentID: number;
|
||||
OwnerID: UUID;
|
||||
IsAttachment: boolean;
|
||||
PCode: PCode;
|
||||
rtreeEntry?: ITreeBoundingBox;
|
||||
hasNameValueEntry(key: string): boolean;
|
||||
getNameValueEntry(key: string): string;
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
import {IGameObject} from './IGameObject';
|
||||
import {RBush3D} from 'rbush-3d/dist';
|
||||
import {GameObjectFull} from '../GameObjectFull';
|
||||
import {UUID} from '../UUID';
|
||||
import {GameObject} from '../GameObject';
|
||||
|
||||
export interface IObjectStore
|
||||
{
|
||||
rtree?: RBush3D;
|
||||
getObjectsByParent(parentID: number): IGameObject[];
|
||||
getObjectsByParent(parentID: number): GameObject[];
|
||||
shutdown(): void;
|
||||
getObjectsInArea(minX: number, maxX: number, minY: number, maxY: number, minZ: number, maxZ: number): GameObjectFull[];
|
||||
getObjectByUUID(fullID: UUID): IGameObject;
|
||||
getObjectByLocalID(ID: number): IGameObject;
|
||||
getObjectsInArea(minX: number, maxX: number, minY: number, maxY: number, minZ: number, maxZ: number): GameObject[];
|
||||
getObjectByUUID(fullID: UUID): GameObject;
|
||||
getObjectByLocalID(ID: number): GameObject;
|
||||
getNumberOfObjects(): number;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {BBox} from 'rbush-3d/dist';
|
||||
import {IGameObject} from './IGameObject';
|
||||
import {GameObject} from '../GameObject';
|
||||
|
||||
export interface ITreeBoundingBox extends BBox
|
||||
{
|
||||
gameObject: IGameObject;
|
||||
gameObject: GameObject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user