Exemple #1
0
                public static IEnumerable <CodeInstruction> Transpiler(IEnumerable <CodeInstruction> instructions)
                {
                    var codes   = new List <CodeInstruction>(instructions);
                    int counter = FixedUpdatePatcher(ref codes, T_Class1.GetField("ModuleWingMultiplier"));

                    Console.WriteLine("Injected " + counter + " force multipliers in ModuleWing.FixedUpdate()");
                    return(codes);
                }
Exemple #2
0
                public static IEnumerable <CodeInstruction> Transpiler(IEnumerable <CodeInstruction> instructions)
                {
                    var codes   = new List <CodeInstruction>(instructions);
                    int counter = FixedUpdatePatcher(ref codes, T_Class1.GetField("FanJetMultiplier"));

                    Console.WriteLine("Injected " + counter + " force multipliers in FanJet.FixedUpdate()");
                    counter = FixedUpdatePatcher_FanJet(ref codes, T_Class1.GetField("FanJetVelocityRestraint"));
                    Console.WriteLine("Injected " + counter + " velocity alternators in FanJet.FixedUpdate()");
                    return(codes);
                }