示例#1
0
        public static void InvokeReflectBinding(ScriptRuntime runtime)
        {
            var bm = new BindingManager(Prefs.Load(), new ReflectBindingCallback(runtime));

            bm.Collect();
            bm.Generate(TypeBindingFlags.None);
            bm.Report();
        }
示例#2
0
        public static void GenerateTypeDefinition()
        {
            var bm = new BindingManager(Prefs.Load());

            bm.Collect();
            bm.Generate(TypeBindingFlags.TypeDefinition);
            bm.Cleanup();
            bm.Report();
            AssetDatabase.Refresh();
        }
示例#3
0
        public static void GenerateBindingsAndTypeDefinition()
        {
            var bm = new BindingManager(Prefs.Load(), new DefaultBindingCallback());

            bm.Collect();
            bm.Generate(TypeBindingFlags.Default);
            bm.Cleanup();
            bm.Report();
            AssetDatabase.Refresh();
        }
示例#4
0
        public static void GenerateTypeDefinition()
        {
            var bm = new BindingManager(LoadPrefs(), new BindingManager.Args
            {
                codeGenCallback = new DefaultCodeGenCallback(),
                bindingLogger   = new DefaultBindingLogger(),
                useLogWriter    = true,
            });

            bm.Collect();
            bm.Generate(TypeBindingFlags.TypeDefinition);
            bm.Cleanup();
            bm.Report();
            AssetDatabase.Refresh();
        }