23 lines
673 B
C#
23 lines
673 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
public class CollectMissionCondition : MissionCondition
|
|
{
|
|
public CollectMissionCondition() : base (MissionTypeEnum.Collect) {}
|
|
|
|
public CollectMissionCondition(MissionCondition missionCondition) : base (MissionTypeEnum.Collect)
|
|
{
|
|
// Convert base type Subject on specified sub-class (with own functions)
|
|
RequiredElements.Clear();
|
|
foreach (RequiredSubject requiredSubject in missionCondition.RequiredElements)
|
|
{
|
|
RequiredElements.Add(new CollectRequiredSubject(requiredSubject));
|
|
}
|
|
}
|
|
}
|
|
|