mirror of
https://github.com/Alee14/OpenHacknet.git
synced 2025-01-22 09:12:44 -05:00
26 lines
No EOL
661 B
C#
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;
|
|
}
|
|
}
|
|
} |