12 if (!IsGameMode(item))
return null;
16 TimeAndWeatherManagerEntity weatherManager = world.GetTimeAndWeatherManager();
17 if (!weatherManager)
return null;
23 override void UpdateInterlinkedVariables(
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
bool isInit =
false)
31 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
35 TimeAndWeatherManagerEntity weatherManager = world.GetTimeAndWeatherManager();
39 bool value = var.GetBool();
40 weatherManager.SetIsDayAutoAdvanced(value);
45 SCR_NotificationsComponent.SendToUnlimitedEditorPlayers(
ENotification.EDITOR_ATTRIBUTES_DAY_ADVANCE_ENABLED, playerID);
47 SCR_NotificationsComponent.SendToUnlimitedEditorPlayers(
ENotification.EDITOR_ATTRIBUTES_DAY_ADVANCE_DISABLED, playerID);