/// <summary> /// Text is either import string or name of the WeakAura. /// </summary> public WeakAura(string text) { if (text.StartsWith("!")) { var table = text.DecompressToLuaTable(); Table = LuaSerializer.Deserialize <WeakAuraTable>(table); } else { Table = WeakAuraTable.Generate(text); } }
public WeakAura(LuaTable table) { Table = LuaSerializer.Deserialize <WeakAuraTable>(table); }