public static EventDisplays getDisplayType(string val) { EventDisplays t = EventDisplays.StringValue; string orVal = val; if (float.TryParse(orVal, out _)) { t = EventDisplays.FloatValue; } else if (orVal.Contains("[")) { t = EventDisplays.ArrayValue; } return(t); }
public SoundeventProperty(string typeName, EventDisplays t = EventDisplays.StringValue, string v = "") { this.typeName = typeName; this.disAs = t; this.value = v; }
public SoundeventProperty(string typeName, string v) { this.typeName = typeName; this.disAs = getDisplayType(v); this.value = v; }