mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
19 lines
558 B
Python
19 lines
558 B
Python
from typing import Dict
|
|
|
|
from dcs.cloud_presets import CLOUD_PRESETS, Clouds
|
|
|
|
|
|
def inject_cloud_presets(presets: Dict[str, Clouds]) -> None:
|
|
"""
|
|
Inject custom cloud presets from mods into pydcs' cloud presets databases via introspection
|
|
:param presets: The custom presets to be injected into pydcs' cloud presets database
|
|
:return: None
|
|
"""
|
|
CLOUD_PRESETS.update(presets)
|
|
|
|
|
|
def eject_cloud_presets(presets: Dict[str, Clouds]) -> None:
|
|
for preset in presets:
|
|
if preset in CLOUD_PRESETS:
|
|
del CLOUD_PRESETS[preset]
|