Socket classes for Hermes

This commit is contained in:
Tom
2024-06-24 22:31:45 +00:00
commit d8522584c4
26 changed files with 434 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
namespace HermesSocketLibrary.Quests.Tasks
{
public class EmoteMessageQuestTask : IQuestTask
{
public string Name => $"send {Target} messages";
public QuestType Type { get; set; }
public int Target { get; }
public EmoteMessageQuestTask(int target)
{
Target = target;
}
public bool IsCompleted(int counter)
{
return counter >= Target;
}
public bool Process(long chatterId, string message, HashSet<string> emotes)
{
if (string.IsNullOrWhiteSpace(message))
return false;
return emotes.Count > 0;
}
}
}