objects now correctly register components and subobjects

This commit is contained in:
2023-09-20 22:58:18 +00:00
parent f6d491b142
commit 81875c3436
7 changed files with 151 additions and 178 deletions

View File

@@ -577,7 +577,7 @@ load("scripts/entity.js");
var preprimum = {};
preprimum.add_child = function() {};
var World = gameobject.make(preprimum);
var World = gameobject.make(gameobject.ur, preprimum);
var Primum = World;
Primum.selectable = false;
World.reparent = function(parent) { Log.warn("Cannot reparent the Primum."); }