e48d4bbe88
- Introduced a new benchmark save script to create a stress test scenario with extreme values for simulation performance. - Added a full UI benchmark script to measure frame rates and performance metrics during UI interactions. - Implemented tests for coarse generations to ensure population transitions are handled correctly. - Created tests for extra parameters to validate the loading and application of configuration settings. - Developed simulation optimization tests to verify the efficiency of population drift and rounding mechanisms. - Added split optimization tests to ensure accurate allocation and rounding behavior in population management. - Included startup parameter tests to confirm the correct initialization of global parameters before scene readiness. - Enhanced the audit rounding ledger to compare selective and full rounding results for consistency.
26 lines
758 B
GDScript
26 lines
758 B
GDScript
class_name OwniverseLifeRuleLoader
|
|
const E = preload("res://world/owniverse/math/exact.gd")
|
|
|
|
static func get_data() -> Dictionary:
|
|
var result: Dictionary = CSVLoader.load(DATA)
|
|
for row: Dictionary in result.values():
|
|
for field in ["span", "progress", "degradation"]:
|
|
row[field] = E.of(row[field])
|
|
return result
|
|
|
|
#region Data Items
|
|
|
|
const DATA := """
|
|
id|span|progress|degradation|next|fall
|
|
HP|5E+06|0.00025|0.0025|EON1|RP:1
|
|
EON1|1E+06|0.025|0.0025|EON2|HP:100^RP:1
|
|
EON2|1E+06|0.025|0.0025|EON3|EON1:1
|
|
EON3|1E+05|0.025|0.0025|EON4|EON2:1000^EON1:1
|
|
EON4|1E+05|0.025|0.0025|EON5|EON3:1000^EON1:1
|
|
EON5|5E+05|0.025|0.0025|C0.0|EON4:2000^EON1:1
|
|
C0.0|2E+03|0.0175|0.025|C0.1|EON5:1
|
|
C0.1|2E+03|0.0175|0.025|C0.2|C0.0:1
|
|
"""
|
|
|
|
#endregion
|