コード例 #1
0
        static int _m_PostUrl(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Casinos.MbHelper gen_to_be_invoked = (Casinos.MbHelper)translator.FastGetCSObj(L, 1);



                {
                    string _url       = LuaAPI.lua_tostring(L, 2);
                    string _post_data = LuaAPI.lua_tostring(L, 3);
                    System.Action <int, string> _cb = translator.GetDelegate <System.Action <int, string> >(L, 4);

                    gen_to_be_invoked.PostUrl(_url, _post_data, _cb);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
コード例 #2
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Casinos.MbHelper gen_ret = new Casinos.MbHelper();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to Casinos.MbHelper constructor!"));
        }
コード例 #3
0
        static int _m_WWWDownloadList(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Casinos.MbHelper gen_to_be_invoked = (Casinos.MbHelper)translator.FastGetCSObj(L, 1);



                {
                    System.Collections.Generic.List <string> _list_url = (System.Collections.Generic.List <string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <string>));
                    System.Action <UnityEngine.WWW[]>        _cb       = translator.GetDelegate <System.Action <UnityEngine.WWW[]> >(L, 3);

                    gen_to_be_invoked.WWWDownloadList(_list_url, _cb);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
コード例 #4
0
        static int _m_WWWDownload(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Casinos.MbHelper gen_to_be_invoked = (Casinos.MbHelper)translator.FastGetCSObj(L, 1);



                {
                    string _url = LuaAPI.lua_tostring(L, 2);
                    System.Action <UnityEngine.WWW> _cb = translator.GetDelegate <System.Action <UnityEngine.WWW> >(L, 3);

                    gen_to_be_invoked.WWWDownload(_url, _cb);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }