import PE from './src/index.js';

// 创建引擎实例
const engine = PE.create();

// 等待一段时间让场景加载
setTimeout(() => {
    console.log('Engine:', engine);
    console.log('Current scene:', engine.currentScene);
    console.log('Stage:', engine.stage);
    
    // 检查场景容器中的元素
    if (engine.currentScene) {
        console.log('Scene container:', engine.currentScene.container);
        console.log('Scene elements:', engine.currentScene.elements);
        console.log('Scene container children:', engine.currentScene.container.children.length);
        
        // 遍历所有子元素
        for (let i = 0; i < engine.currentScene.container.children.length; i++) {
            const child = engine.currentScene.container.children[i];
            console.log('Child element:', i, child.tagName, child.className, child.style.cssText);
        }
    } else {
        console.log('No current scene loaded');
    }
}, 2000);