feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39

Merged
min merged 215 commits from feat/lua-50-games-bundle into main 2026-06-09 21:59:25 +00:00
Showing only changes of commit 6fe249033e - Show all commits

View File

@ -326,6 +326,10 @@ export class GameRuntime {
}
} catch (_) {}
} else {
if (cmd === 'scene.particles' || cmd === 'ui.showText') {
// eslint-disable-next-line no-console
console.warn('[Lua onCommand]', cmd, JSON.stringify(payload));
}
this._handleCommand(null, cmd, payload);
}
});
@ -4868,6 +4872,8 @@ export class GameRuntime {
* Делегирует в BabylonScene._spawnParticleEffect, который знает о Babylon.
*/
_spawnParticles(payload) {
// eslint-disable-next-line no-console
console.warn('[_spawnParticles] called with:', JSON.stringify(payload), 'scene3d=', !!this.scene3d, 'fn=', !!this.scene3d?._spawnParticleEffect);
if (!payload || !this.scene3d?._spawnParticleEffect) return;
try {
this.scene3d._spawnParticleEffect(payload);