Пример #1
0
    private static int AndroidPay(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        string luaString = LuaScriptMgr.GetLuaString(L, 1);
        bool   b         = CSharpInterface.AndroidPay(luaString);

        LuaScriptMgr.Push(L, b);
        return(1);
    }
    public static int AndroidPay_s(IntPtr l)
    {
        int result;

        try
        {
            string jsonStr;
            LuaObject.checkType(l, 1, out jsonStr);
            bool b = CSharpInterface.AndroidPay(jsonStr);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }