This commit is contained in:
Bill 2021-07-06 09:19:35 -04:00
parent 80daebc874
commit be1c8bc90b
4 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,4 @@
import { Container } from 'pixi.js';
export class NitroContainer extends Container
{}

View File

@ -0,0 +1,4 @@
import { Sprite } from 'pixi.js';
export class NitroSprite extends Sprite
{}

View File

@ -1,7 +1,9 @@
export * from './AdvancedMap'; export * from './AdvancedMap';
export * from './INitroPoint'; export * from './INitroPoint';
export * from './NitroAdjustmentFilter'; export * from './NitroAdjustmentFilter';
export * from './NitroContainer';
export * from './NitroFilter'; export * from './NitroFilter';
export * from './NitroPoint'; export * from './NitroPoint';
export * from './NitroRectangle'; export * from './NitroRectangle';
export * from './NitroSprite';
export * from './NitroTimer'; export * from './NitroTimer';

View File

@ -1167,13 +1167,17 @@ export class RoomEngine extends NitroManager implements IRoomEngine, IRoomCreato
if(!camera) continue; if(!camera) continue;
let location: IVector3D = null;
const object = this.getRoomObject(instanceData.roomId, camera.targetId, camera.targetCategory); const object = this.getRoomObject(instanceData.roomId, camera.targetId, camera.targetCategory);
if(!object) continue; if(object) location = object.getLocation();
if(!location) continue;
if((instanceData.roomId !== this._activeRoomId) || !this._activeRoomIsDragged) if((instanceData.roomId !== this._activeRoomId) || !this._activeRoomIsDragged)
{ {
this.updateRoomCamera(instanceData.roomId, 1, object.getLocation(), time); this.updateRoomCamera(instanceData.roomId, 1, location, time);
} }
} }