コード例 #1
0
        //static bool Prefix(ushort nodeID){}
        public static IEnumerable<CodeInstruction> Transpiler(ILGenerator il, IEnumerable<CodeInstruction> instructions) {
            try {
                var codes = TranspilerUtils.ToCodeList(instructions);
                CheckTracksCommons.ApplyCheckTracks(codes, Target, occurance:1);

                Log("successfully patched NetNode.RenderInstance");
                return codes;
            }catch(Exception e) {
                Log(e + "\n" + Environment.StackTrace);
                throw e;
            }
        }
コード例 #2
0
        //static bool Prefix(ushort nodeID){}
        public static IEnumerable<CodeInstruction> Transpiler(MethodBase original, IEnumerable<CodeInstruction> instructions) {
            try {
                var codes = instructions.ToCodeList();
                CheckTracksCommons.ApplyCheckTracks(codes, original, occurance:1);

                Log.Debug("successfully patched NetNode.RenderInstance()");
                return codes;
            }catch(Exception e) {
                if (VERBOSE) Log.Error(e.ToString(), false);
                throw e;
            }
        }