コード例 #1
0
ファイル: Simulator.cs プロジェクト: tom-saetran/old-SimuLife
        public static void StartEvent(SeasonalEvents seasonalEvent)
        {
            switch (seasonalEvent)
            {
            case SeasonalEvents.Monday:
                SeasonalMonday();
                break;

            case SeasonalEvents.Tuesday:
                SeasonalTuesday();
                break;

            case SeasonalEvents.Wednesday:
                SeasonalWednesday();
                break;

            case SeasonalEvents.Thursday:
                SeasonalThursday();
                break;

            case SeasonalEvents.Friday:
                SeasonalFriday();
                break;

            case SeasonalEvents.Saturday:
                SeasonalSaturday();
                break;

            case SeasonalEvents.Sunday:
                SeasonalSunday();
                break;
            }
        }
コード例 #2
0
        bool IsEventStart(SeasonalEvents events)
        {
            var e = EventManager.GetEvent(events);

            return(e.HasEverStarted(System.DateTime.UtcNow));
        }