public override void DoAction() { //sprawdź czy wpis został już dodany do dziennika JournalEntry entry = Entry.GetEntry(TimeManagerScript.GetDate()); JournalUIScript.TryInsertEntry(entry); //wstaw do dziennika }
public override bool ConditionTest() { WorldDate currentDate = TimeManagerScript.GetDate(); bool finishIsNextDay = (HoursOnly)? Start.ToSecondsHoursOnly() > Finish.ToSecondsHoursOnly() : false; bool currentIsNextDay = finishIsNextDay && Finish.ToSecondsHoursOnly() >= currentDate.ToSecondsHoursOnly(); return ((HoursOnly) ? CompareHoursOnly(currentDate, currentIsNextDay, finishIsNextDay) : CompareFullDates(currentDate)); }
public override bool ConditionTest() { WorldDate currentDate = TimeManagerScript.GetDate(); return(Date.CompareTo(currentDate, TimeOrientation, false, false)); }