public CheckQuestMethodsPair(MainLua mainLua, LuaFunction a, LuaFunction b, string oneLineObjective) { TargetMessageMethod = a; TallyMethod = b; mainLua.AddToCheckQuestMethod(this); mainLua.AddToObjectiveTypes(oneLineObjective); }
public CheckQuestMethodsPair(MainLua mainLua, LuaFunction a, LuaFunction b, string targetTableName, LuaFunction check, string objective) { TargetMessageMethod = a; TallyMethod = b; mainLua.AddToCheckQuestMethod(this); mainLua.AddToObjectiveTypes(targetTableName, new GenericTargetPair(check, objective)); }