Ejemplo n.º 1
0
    public static int Apply(IntPtr l)
    {
        int result;

        try
        {
            LocalConfig localConfig = (LocalConfig)LuaObject.checkSelf(l);
            bool        isInitialize;
            LuaObject.checkType(l, 2, out isInitialize);
            localConfig.Apply(isInitialize);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }