InitPropertyList() static private method

static private InitPropertyList ( ) : void
return void
Beispiel #1
0
    static void GenApi(ToLuaMenu.BindType bt)
    {
        ToLuaExport.Clear();
        ToLuaExport.className     = bt.name;
        ToLuaExport.type          = bt.type;
        ToLuaExport.isStaticClass = bt.IsStatic;
        ToLuaExport.baseType      = bt.baseType;
        ToLuaExport.wrapClassName = bt.wrapName;
        ToLuaExport.libClassName  = bt.libName;
        if (bt.type.IsInterface && bt.type != typeof(System.Collections.IEnumerator))
        {
            return;
        }

        //如果是枚举
        if (bt.type.IsEnum)
        {
            GenEnumApi(bt);
        }
        //如果是类
        else
        {
            ToLuaExport.InitMethods();
            ToLuaExport.InitPropertyList();
            ToLuaExport.InitCtorList();
            GenClassApi(bt);
        }
    }