10 if (!IsGameMode(item))
15 TimeAndWeatherManagerEntity timeManager = world.GetTimeAndWeatherManager();
16 if (!timeManager)
return null;
20 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
26 TimeAndWeatherManagerEntity timeManager = world.GetTimeAndWeatherManager();
27 if (!timeManager)
return;
29 timeManager.SetDayDuration(86400 / var.GetFloat());
34 int notificationInt = var.GetFloat() * 10;
35 SCR_NotificationsComponent.SendToUnlimitedEditorPlayers(
ENotification.EDITOR_ATTRIBUTES_DAY_DURATION_CHANGED, playerID, notificationInt * 100);