using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StardustCore.Events
{
///
/// Used to parse additional
///
public static class EventExtensions
{
///
/// Gets the current command string with all of it's data.
///
///
///
public static string currentCommandString(this StardewValley.Event CurrentEvent)
{
if (CurrentEvent.currentCommand >= CurrentEvent.eventCommands.Length) return "";
return CurrentEvent.eventCommands.ElementAt(CurrentEvent.currentCommand);
}
///
/// Gets the name of the current command string.
///
///
///
public static string currentCommandStringName(this StardewValley.Event CurrentEvent)
{
if (CurrentEvent.currentCommand >= CurrentEvent.eventCommands.Length) return "";
return CurrentEvent.eventCommands.ElementAt(CurrentEvent.currentCommand).Split(' ')[0];
}
}
}