PHASE 15: Antigravity Systems Registry - centralized namespace for all game systems
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user