10 if (!IsGameMode(item))
13 BaseGameMode gameMode =
GetGame().GetGameMode();
21 TimeAndWeatherManagerEntity timeManager = world.GetTimeAndWeatherManager();
30 override void UpdateInterlinkedVariables(
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
bool isInit =
false)
41 int index = var.GetInt();
43 if (index < 0 || index >=
m_aValues.Count())
56 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
61 override void CreatePresets()
68 TimeAndWeatherManagerEntity timeManager = world.GetTimeAndWeatherManager();
72 SCR_AttributesManagerEditorComponent manager = SCR_AttributesManagerEditorComponent.Cast(SCR_AttributesManagerEditorComponent.GetInstance(SCR_AttributesManagerEditorComponent));
81 vector date = dateVar.GetVector();
82 year = dateAttribute.GetYearByIndex(date[2]);
90 timeManager.GetDate(year, month, day);
94 array<SCR_DayTimeInfoBase> daytimeInfo =
new array<SCR_DayTimeInfoBase>;
95 timeManager.GetDayTimeInfoArray(daytimeInfo, year, month, day);
99 foreach (SCR_DayTimeInfoBase dayTime: daytimeInfo)
103 time = dayTime.GetDayTime();
107 value.SetWithUIInfo(dayTime.GetDayTimeUIInfo(), time * 3600);
112 override void PreviewVariable(
bool setPreview, SCR_AttributesManagerEditorComponent manager)
119 timeAttribute.PreviewVariable(setPreview, manager);