10using System.Collections.Generic;
66 public static class SupportUtil {
71 public static void OnlySupportFirstFeature<T>(List<SupportInfo> info) {
72 for (
int i = 1; i < info.Count; i++) {
73 info[i] = SupportInfo.Error(
"Only the first " + LeapGraphicTagAttribute.GetTagName(typeof(T)) +
" is supported.");
The support info class provides a very basic way to notify that something is fully supported,...
static SupportInfo Error(string message)
Helper getter to return a struct that signifies no support with an error message.
static SupportInfo Warning(string message)
Helper getter to return a struct that signifies partial support with a warning message.
static SupportInfo FullSupport()
Helper getter to return a struct that signifies full support.
SupportInfo OrWorse(SupportInfo other)
Helper method that returns either the current support info struct, or the argument support info struc...