Exemplo n.º 1
0
		private EMDataScheduleStatus MakeData_Temp ( int p_Level )
		{
			EMDataScheduleStatus data = new EMDataScheduleStatus ();
			data.Level = p_Level;
			
			return data;
		}
Exemplo n.º 2
0
        private EMDataScheduleStatus MakeData_Temp(int p_Level)
        {
            EMDataScheduleStatus data = new EMDataScheduleStatus();

            data.Level = p_Level;

            return(data);
        }
Exemplo n.º 3
0
	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); 
			}
		}
	}
Exemplo n.º 4
0
		public virtual void CheckOpen ( EMDataScheduleStatus p_ScheduleStatus )
		{
			// base level
			IsOpen = (p_ScheduleStatus.Level >= Level);
		}
Exemplo n.º 5
0
		/// <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);
			}
		}
Exemplo n.º 6
0
 //-SetScheduleStatus-
 public void SetScheduleStatus(EMScheduleType p_Type, EMDataScheduleStatus p_ScheduleStatus)
 {
     m_ScheduleStatus.Add(p_Type, p_ScheduleStatus);
 }
Exemplo n.º 7
0
		//-SetScheduleStatus-
		public void SetScheduleStatus (EMScheduleType p_Type, EMDataScheduleStatus p_ScheduleStatus)
		{
			m_ScheduleStatus.Add (p_Type, p_ScheduleStatus);
		}