Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public SoundeventProperty(string typeName, EventDisplays t = EventDisplays.StringValue, string v = "")
 {
     this.typeName = typeName;
     this.disAs    = t;
     this.value    = v;
 }
Ejemplo n.º 3
0
 public SoundeventProperty(string typeName, string v)
 {
     this.typeName = typeName;
     this.disAs    = getDisplayType(v);
     this.value    = v;
 }