/// <summary>
        /// 캐릭터 데이터를 기준으로 스케쥴 오픈상태를 결정한다.
        /// </summary>
        /// <param name="p_Type">P_ type.</param>
        /// <param name="p_Character">P_ character.</param>
        public void CheckScheduleOpen(EMScheduleType p_Type, EMDataScheduleStatus p_ScheduleStatus)
        {
            List <EMSchedule> schedule_list = m_Data.Get(p_Type);

            foreach (EMSchedule schedule in schedule_list)
            {
                schedule.CheckOpen(p_ScheduleStatus);
            }
        }
    public void TestCheckScheduleOpen_VACATION()
    {
        EMDataScheduleStatus character_status = new EMDataScheduleStatus();

        character_status.Level = 3;

        scheduler.CheckScheduleOpen(EMScheduleType.VACATION, character_status);

        List <EMSchedule> schedule_list = scheduler.GetScheduleList(EMScheduleType.VACATION);

        foreach (EMSchedule schedule in schedule_list)
        {
            if (schedule.IsOpen == false)
            {
                Assert.True(character_status.Level < schedule.Level, "Schedule.ID = " + schedule.ID);
            }
            else if (schedule.IsOpen == true)
            {
                Assert.True(character_status.Level >= schedule.Level, "Schedule.ID = " + schedule.ID);
            }
        }
    }
Exemple #3
0
 public virtual void CheckOpen(EMDataScheduleStatus p_ScheduleStatus)
 {
     // base level
     IsOpen = (p_ScheduleStatus.Level >= Level);
 }