Example #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    string strName = LuaAPI.lua_tostring(L, 2);
                    string strPath = LuaAPI.lua_tostring(L, 3);

                    xc.DBGemHole __cl_gen_ret = new xc.DBGemHole(strName, strPath);
                    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.DBGemHole constructor!"));
        }
Example #2
0
        static int _m_GetGemHoleNum(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    uint __cl_gen_ret = __cl_gen_to_be_invoked.GetGemHoleNum(  );
                    LuaAPI.xlua_pushuint(L, __cl_gen_ret);



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


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


            try {
                {
                    byte pos    = (byte)LuaAPI.lua_tonumber(L, 2);
                    byte holeId = (byte)LuaAPI.lua_tonumber(L, 3);

                    xc.DBGemHole.GemHoleInfo __cl_gen_ret = __cl_gen_to_be_invoked.GetGemHoleInfo(pos, holeId);
                    translator.Push(L, __cl_gen_ret);



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