Beispiel #1
0
        static int _m_ShowShareContentEditor(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                cn.sharesdk.unity3d.ShareSDK gen_to_be_invoked = (cn.sharesdk.unity3d.ShareSDK)translator.FastGetCSObj(L, 1);



                {
                    cn.sharesdk.unity3d.PlatformType _platform; translator.Get(L, 2, out _platform);
                    cn.sharesdk.unity3d.ShareContent _content = (cn.sharesdk.unity3d.ShareContent)translator.GetObject(L, 3, typeof(cn.sharesdk.unity3d.ShareContent));

                    int gen_ret = gen_to_be_invoked.ShowShareContentEditor(_platform, _content);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #2
0
        static int _m_ShareContent(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                cn.sharesdk.unity3d.ShareSDK gen_to_be_invoked = (cn.sharesdk.unity3d.ShareSDK)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && translator.Assignable <cn.sharesdk.unity3d.PlatformType>(L, 2) && translator.Assignable <cn.sharesdk.unity3d.ShareContent>(L, 3))
                {
                    cn.sharesdk.unity3d.PlatformType _platform; translator.Get(L, 2, out _platform);
                    cn.sharesdk.unity3d.ShareContent _content = (cn.sharesdk.unity3d.ShareContent)translator.GetObject(L, 3, typeof(cn.sharesdk.unity3d.ShareContent));

                    int gen_ret = gen_to_be_invoked.ShareContent(_platform, _content);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && translator.Assignable <cn.sharesdk.unity3d.PlatformType[]>(L, 2) && translator.Assignable <cn.sharesdk.unity3d.ShareContent>(L, 3))
                {
                    cn.sharesdk.unity3d.PlatformType[] _platforms = (cn.sharesdk.unity3d.PlatformType[])translator.GetObject(L, 2, typeof(cn.sharesdk.unity3d.PlatformType[]));
                    cn.sharesdk.unity3d.ShareContent   _content   = (cn.sharesdk.unity3d.ShareContent)translator.GetObject(L, 3, typeof(cn.sharesdk.unity3d.ShareContent));

                    int gen_ret = gen_to_be_invoked.ShareContent(_platforms, _content);
                    LuaAPI.xlua_pushinteger(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 cn.sharesdk.unity3d.ShareSDK.ShareContent!"));
        }