예제 #1
0
 public static string XMLstringToJsonString(string xmlString)
 => ExM.DoFuncWith(JsonConvert.SerializeObject,
                   () => {
     var xml = new XmlDocument();
     xml.LoadXml(xmlString);
     return(xml);
 });
예제 #2
0
 /// <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))))
 }));
예제 #3
0
 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));
예제 #4
0
 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));
예제 #5
0
 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));
예제 #6
0
 /// <summary>
 /// = Target Angle LPlayer
 /// </summary>
 public static GenCtxProperty Aimed() => Target(RV2ControlMethod.ANG, GCXF(_ => ExM.LPlayer()));