Esempio n. 1
0
        static CIEnumerable Transpiler(CIEnumerable cins, ILGenerator ilg)
        {
            int ldc25 = 0;

            return(cins.ciReplace(ci => ci.isLDC(25f) && ++ldc25 == 2,
                                  _codeForCfgVar <float, GrapplingArmUpgraded>(25f, nameof(Main.config.hookSpeed), ilg)));
        }
Esempio n. 2
0
 static CIEnumerable Transpiler(CIEnumerable cins) =>
 cins.ciReplace(ci => ci.isLDC(90f), OpCodes.Ldarg_0, emitCall <Func <GrapplingHook, float> >(getAngle));
Esempio n. 3
0
 static CIEnumerable transpiler_dayNightSpeed(CIEnumerable cins) =>
 cins.ciReplace(ci => ci.isLDC(1.0f), CIUtils.speed);