public SavedMacroState(PlayerMacroState macroState)
{
if (macroState == null)
throw new ArgumentNullException("macroState");
CharacterName = macroState.Client.Name;
if (macroState.Client.HasHotkey)
{
HotkeyModifiers = macroState.Client.Hotkey.Modifiers;
HotkeyKey = macroState.Client.Hotkey.Key;
}
UseLyliacVineyard = macroState.UseLyliacVineyard;
FlowerAlternateCharacters = macroState.FlowerAlternateCharacters;
foreach (var skillName in macroState.Client.Skillbook.ActiveSkills)
skills.Add(new SavedSkillState(skillName));
foreach (var spell in macroState.QueuedSpells)
spells.Add(new SavedSpellState(spell));
foreach (var flower in macroState.FlowerTargets)
flowers.Add(new SavedFlowerState(flower));
}