示例#1
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();
        }
示例#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 ClearBindings()
        {
            var prefs = Prefs.Load();
            var kv    = new Dictionary <string, List <string> >();

            foreach (var dir in prefs.cleanupDir)
            {
                var pdir = ReplacePathVars(dir);
                kv[pdir] = new List <string>();
            }
            BindingManager.Cleanup(kv, null);
            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();
        }