public static int GetSecondsRemaining(ITimedEventVO vo) { int nowTimeWithEventOffset = TimedEventUtils.GetNowTimeWithEventOffset(vo); switch (TimedEventUtils.GetState(vo)) { case TimedEventState.Upcoming: return(vo.StartTimestamp - nowTimeWithEventOffset); case TimedEventState.Live: return(vo.EndTimestamp - nowTimeWithEventOffset); case TimedEventState.Closing: return(vo.EndTimestamp - nowTimeWithEventOffset); default: return(0); } }
public static TimedEventState GetState(ITimedEventVO vo) { int nowTimeWithEventOffset = TimedEventUtils.GetNowTimeWithEventOffset(vo); return(TimedEventUtils.GetState(vo, (uint)nowTimeWithEventOffset)); }
public static bool IsTimedEventClosing(ITimedEventVO eventVO, uint timeToCheck) { TimedEventState state = TimedEventUtils.GetState(eventVO, timeToCheck); return(state == TimedEventState.Closing); }
public static bool IsTimedEventActive(ITimedEventVO eventVO) { TimedEventState state = TimedEventUtils.GetState(eventVO); return(state != TimedEventState.Invalid && state != TimedEventState.Hidden); }
public static bool IsTimedEventLiveOrClosing(ITimedEventVO eventVO) { TimedEventState state = TimedEventUtils.GetState(eventVO); return(state == TimedEventState.Live || state == TimedEventState.Closing); }
public static bool IsTimedEventLive(ITimedEventVO eventVO, uint timeToCheck) { TimedEventState state = TimedEventUtils.GetState(eventVO, timeToCheck); return(state == TimedEventState.Live); }
public static bool IsTimedEventLive(ITimedEventVO eventVO) { TimedEventState state = TimedEventUtils.GetState(eventVO); return(state == TimedEventState.Live); }
public unsafe static long $Invoke3(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(TimedEventUtils.GetState((ITimedEventVO)GCHandledObjects.GCHandleToObject(*args)))); }