f2111a376a
- Introduced `life_evolution.gd` to manage life evolution processes. - Implemented `manual_production.gd` for handling production mechanics, including resource management and production steps. - Created `object_batches.gd` to manage batches of objects, including scaling and appending batches. - Developed `object_ledger.gd` for tracking physical amounts, available resources, and binding ownerships. - Added `simulation_module.gd` as a base class for simulation modules, providing a weak reference to the world. - Established `stellar_rules.gd` for managing stellar evolution and destruction mechanics. - Introduced `universe_environment.gd` to calculate environmental parameters based on the current state of the universe.
9 lines
238 B
GDScript
9 lines
238 B
GDScript
extends RefCounted
|
|
## Modules borrow their world; a weak reference prevents ownership cycles.
|
|
var _world_ref: WeakRef
|
|
var world:
|
|
get: return _world_ref.get_ref()
|
|
|
|
func _init(owner_world) -> void:
|
|
_world_ref = weakref(owner_world)
|