PHASE 15: Antigravity Systems Registry - centralized namespace for all game systems

This commit is contained in:
2025-12-11 13:23:47 +01:00
parent dae0f1810a
commit 1f45429d08

View File

@@ -12,6 +12,32 @@ window.Antigravity = {
}
},
/**
* SYSTEMS REGISTRY
* Central storage for all game systems
* Usage: window.Antigravity.Systems.TerrainSystem
*/
Systems: {},
/**
* Register a system
* @param {string} name - System name
* @param {Object} system - System instance
*/
registerSystem: function (name, system) {
this.Systems[name] = system;
console.log(`✅ Registered system: ${name}`);
},
/**
* Get a registered system
* @param {string} name - System name
* @returns {Object|null} System instance or null
*/
getSystem: function (name) {
return this.Systems[name] || null;
},
Rendering: {
/**
* Zagotavlja pravilno globinsko razvrščanje (Depth Sorting) vseh spritov