public static string XMLstringToJsonString(string xmlString) => ExM.DoFuncWith(JsonConvert.SerializeObject, () => { var xml = new XmlDocument(); xml.LoadXml(xmlString); return(xml); });
/// <summary> /// Equal to `gsr { start rv2.ry +=f rand from to } sp` /// </summary> public static SyncPattern RandomY(ExBPY from, ExBPY to, SyncPattern sp) => _AsGSR(sp, GenCtxProperty.Start(new GCRule[] { new GCRule <float>(ExType.Float, "rv2.ry", GCOperator.AddAssign, GCXF(x => ExM.Rand(from(x), to(x)))) }));
public static Func <TExArgCtx, TEx <R> > PA_Mul <R>(Func <TExArgCtx, TEx <R> > a, Func <TExArgCtx, TEx <float> > b) => t => ExM.Mul(b(t), a(t));
public static Func <TExArgCtx, TEx <R> > PA_Sub <R>(Func <TExArgCtx, TEx <R> > a, Func <TExArgCtx, TEx <R> > b) => t => ExM.Sub(a(t), b(t));
public static Func <TExArgCtx, TEx <R> > PA_Add <R>(Func <TExArgCtx, TEx <R> > a, Func <TExArgCtx, TEx <R> > b) => t => ExM.Add(a(t), b(t));
/// <summary> /// = Target Angle LPlayer /// </summary> public static GenCtxProperty Aimed() => Target(RV2ControlMethod.ANG, GCXF(_ => ExM.LPlayer()));