public override void Decode(string data) { booleans = new UnNullableCfg <CountlessBool>(); ints = new UnNullableCfg <CountlessInt>(); // enumTags = new UnnullableSTD<CountlessInt>(); // boolTags = new UnnullableSTD<CountlessBool>(); base.Decode(data); }
public static bool Select(this UnNullableCfg <CountlessInt> uc, Trigger t) { var tmp = uc.Get(t); if (pegi.select(ref tmp, t.enm)) { uc.Set(t, tmp); return(true); } return(false); }
public static bool Edit(this UnNullableCfg <CountlessInt> uc, ValueIndex ind) { var tmp = uc.Get(ind);//[ind.groupIndex][ind.triggerIndex]; if (pegi.edit(ref tmp)) { uc.Set(ind, tmp); return(true); } return(false); }
public static bool Toggle(this UnNullableCfg <CountlessBool> uc, ValueIndex ind) { var tmp = uc.Get(ind);//[ind.groupIndex][ind.triggerIndex]; if (pegi.toggleIcon(ref tmp)) { uc.Set(ind, tmp); return(true); } return(false); }
public static void Set(this UnNullableCfg <CountlessInt> uc, ValueIndex ind, int value) => uc[ind.groupIndex][ind.triggerIndex] = value;
public static int Get(this UnNullableCfg <CountlessInt> uc, ValueIndex ind) => uc[ind.groupIndex][ind.triggerIndex];
public static bool Get(this UnNullableCfg <CountlessBool> uc, ValueIndex ind) => uc[ind.groupIndex][ind.triggerIndex];
public virtual void Decode(CfgData data) { booleans = new UnNullableCfg <CountlessBool>(); ints = new UnNullableCfg <CountlessInt>(); }