mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-05 09:50:34 +02:00
Improve calculation performance, write helpful README
This commit is contained in:
@ -33,6 +33,10 @@ function api.set_effect_cycle(name, cycle)
|
||||
climate_mod.cycles[name].timespan = cycle
|
||||
end
|
||||
|
||||
function api.register_global_influence(name, func)
|
||||
climate_mod.global_influences[name] = func
|
||||
end
|
||||
|
||||
function api.register_influence(name, func)
|
||||
climate_mod.influences[name] = func
|
||||
end
|
||||
|
Reference in New Issue
Block a user