21 public CUIBool2(
bool x =
false,
bool y =
false)
27 public override string ToString() => $
"[{X},{Y}]";
28 public static CUIBool2 Parse(
string s)
30 string content = s.Substring(
32 s.IndexOf(
']') - s.IndexOf(
'[') - 1
35 var components = content.Split(
',').Select(a => a.Trim());
37 string sx = components.ElementAtOrDefault(0);
38 string sy = components.ElementAtOrDefault(1);
43 if (sx !=
null && sx !=
"") x =
bool.Parse(sx);
44 if (sy !=
null && sy !=
"") y =
bool.Parse(sy);