14 TimeAndWeatherManagerEntity weatherManager = world.GetTimeAndWeatherManager();
18 return SCR_BaseEditorAttributeVar.CreateBool(!weatherManager.IsWindSpeedOverridden() || !weatherManager.IsWindDirectionOverridden());
22 override void UpdateInterlinkedVariables(
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
bool isInit =
false)
30 bool isAutomatic =
false;
32 isAutomatic = var.GetBool();
39 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
44 BaseGameMode gameMode =
GetGame().GetGameMode();
52 TimeAndWeatherManagerEntity weatherManager = world.GetTimeAndWeatherManager();
61 if (!weatherTransitionManager)
76 SCR_WindDirectionInfo windDirectionInfo;
77 if (!weatherManager.GetWindDirectionInfoFromIndex(windDirectionVar.GetInt(), windDirectionInfo))
80 weatherManager.SetWindPreview(
true, windSpeedVar.GetFloat(), windDirectionInfo.GetWindDirectionValue());
83 else if (weatherTransitionManager.IsPreviewingWind())
85 weatherManager.SetWindPreview(
false);
92 if (weatherTransitionManager && weatherTransitionManager.IsPreviewingWind())
93 weatherManager.SetWindPreview(
false);
96 weatherManager.DelayedSetWindOverride(!var.GetBool(), playerID);
100 override void PreviewVariable(
bool setPreview, SCR_AttributesManagerEditorComponent manager)
105 WriteVariable(
null, GetVariable(), manager, -1);
111 TimeAndWeatherManagerEntity weatherManager = world.GetTimeAndWeatherManager();
116 if (!weatherTransitionManager)
119 if (weatherTransitionManager.IsPreviewingWind())
120 weatherManager.SetWindPreview(
false);