Update DevTools

This commit is contained in:
Bill 2024-09-12 18:09:38 -04:00
parent 55ca102095
commit afe14eafe9

View File

@ -1,6 +1,4 @@
import { GetRoomEngine, RoomEngine } from '@nitrots/room';
import { GetRenderer, GetTexturePool } from '@nitrots/utils';
import { Texture, TextureGCSystem, TextureSource } from 'pixi.js';
export { };
declare global
@ -10,16 +8,10 @@ declare global
NitroDevTools?:
{
roomEngine: RoomEngine;
textureCache: TextureSource<any>[];
texturePool: { [index: string]: { [index: string]: Texture[] } };
textureGC: TextureGCSystem;
};
}
}
window.NitroDevTools = {
roomEngine: GetRoomEngine(),
textureCache: GetRenderer().texture.managedTextures,
texturePool: GetTexturePool().textures,
textureGC: GetRenderer().textureGC
roomEngine: GetRoomEngine()
};