Exemplo n.º 1
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.UserPlayerPrefs __cl_gen_ret = new xc.UserPlayerPrefs();
                    translator.Push(L, __cl_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 xc.UserPlayerPrefs constructor!"));
        }
Exemplo n.º 2
0
        static int _m_GetInstance_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    xc.UserPlayerPrefs __cl_gen_ret = xc.UserPlayerPrefs.GetInstance(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 3
0
        static int _m_Save(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.UserPlayerPrefs __cl_gen_to_be_invoked = (xc.UserPlayerPrefs)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.Save(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 4
0
        static int _m_Init(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.UserPlayerPrefs __cl_gen_to_be_invoked = (xc.UserPlayerPrefs)translator.FastGetCSObj(L, 1);


            try {
                {
                    string filename = LuaAPI.lua_tostring(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.Init(filename);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 5
0
        static int _m_SetString(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.UserPlayerPrefs __cl_gen_to_be_invoked = (xc.UserPlayerPrefs)translator.FastGetCSObj(L, 1);


            try {
                {
                    string key = LuaAPI.lua_tostring(L, 2);
                    string val = LuaAPI.lua_tostring(L, 3);

                    __cl_gen_to_be_invoked.SetString(key, val);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 6
0
        static int _m_GetInt(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.UserPlayerPrefs __cl_gen_to_be_invoked = (xc.UserPlayerPrefs)translator.FastGetCSObj(L, 1);


            try {
                {
                    string key         = LuaAPI.lua_tostring(L, 2);
                    int    default_val = LuaAPI.xlua_tointeger(L, 3);

                    int __cl_gen_ret = __cl_gen_to_be_invoked.GetInt(key, default_val);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



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