Scriptum/Assets/Scripts/REFACTORING/Application/Mission/Condition/KillMissionCondition.cs

22 lines
669 B
C#
Raw Permalink Normal View History

2022-12-27 15:16:59 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
2023-01-03 22:44:24 +01:00
public class KillMissionCondition : MissionCondition
2022-12-27 15:16:59 +01:00
{
2023-01-03 22:44:24 +01:00
public KillMissionCondition() : base(MissionTypeEnum.Kill) { }
2022-12-27 15:16:59 +01:00
2023-01-03 22:44:24 +01:00
public KillMissionCondition(MissionCondition missionCondition) : base(MissionTypeEnum.Kill)
2022-12-27 15:16:59 +01:00
{
// Convert base type Subject on specified sub-class (with own functions)
RequiredElements.Clear();
foreach(RequiredSubject requiredSubject in missionCondition.RequiredElements)
{
RequiredElements.Add(new KillRequiredSubject(requiredSubject));
}
}
}