OpenHacknet/Mission/GetStringMission.cs
2015-10-27 23:04:18 -04:00

26 lines
No EOL
661 B
C#

using System.Collections.Generic;
namespace Hacknet.Mission
{
internal class GetStringMission : MisisonGoal
{
public string target;
public GetStringMission(string targetData)
{
target = targetData;
}
public override bool isComplete(List<string> additionalDetails = null)
{
if (additionalDetails == null)
return false;
for (var index = 0; index < additionalDetails.Count; ++index)
{
if (additionalDetails[index].Contains(target))
return true;
}
return false;
}
}
}