18 if (!weatherTransitionManager)
21 array<ref WeatherState> weatherStates =
new array<ref WeatherState>;
24 weatherManager.GetWeatherStatesList(weatherStates);
25 if (weatherStates.IsEmpty())
33 override void UpdateInterlinkedVariables(
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
bool isInit =
false)
44 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
57 if (!weatherTransitionManager)
65 bool setAutomatic = var.
GetBool();
68 if (weatherTransitionManager.IsPreviewingState())
74 weatherManager.
ForceWeatherTo(!setAutomatic,
string.Empty, 0, 0.001, playerID);
79 float transitionTime = 0;
83 transitionTime = transitionVar.
GetInt();
85 weatherManager.
ForceWeatherTo(!setAutomatic,
string.Empty, transitionTime / 3600, 0.001, playerID);
91 override void PreviewVariable(
bool setPreview, SCR_AttributesManagerEditorComponent manager)
98 if (SetAutomatic || !setPreview)
106 if (!weatherTransitionManager)
110 if (weatherTransitionManager.IsPreviewingState())
116 if (!weatherInstantAttribute)