agents defs from DB

This commit is contained in:
STEINNI
2025-10-12 19:45:18 +00:00
parent f62a7176d4
commit a38d2da3e4
11 changed files with 64 additions and 1014 deletions
+7 -3
View File
@@ -13,8 +13,9 @@ class DashboardsController extends EICController {
*
* @returns
*/
spaceViewer() {
async spaceViewer() {
const models = {
agents : new AgentsModel('/agents')
}
const ttb = new app.LoadedModules.Threetobus({
@@ -26,8 +27,11 @@ class DashboardsController extends EICController {
grid: true,
})
const m1 = ttb.agentFromJSON('agent42', this.agentDefs.molecule1)
ttb.scene.add(m1)
this.agentDefs = await models.agents.getSprites('Basic 3D')
const a1 = ttb.agentFromJSON('agent42', this.agentDefs.nocode1)
const a2 = ttb.agentFromJSON('agent42', this.agentDefs.nocode2)
ttb.scene.add(a1)
ttb.scene.add(a2)
//TODO: eventsMapping: address child by suffix in assignations