コード例 #1
0
ファイル: LuaExtendWrap.cs プロジェクト: tianjiuwan/demo
 static int doShake(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 1);
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
         float arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
         float arg3 = (float)LuaDLL.luaL_checknumber(L, 4);
         LuaExtend.doShake(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
        static int _m_doShake_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    float time = (float)LuaAPI.lua_tonumber(L, 1);
                    float att  = (float)LuaAPI.lua_tonumber(L, 2);
                    float hor  = (float)LuaAPI.lua_tonumber(L, 3);
                    float ver  = (float)LuaAPI.lua_tonumber(L, 4);

                    LuaExtend.doShake(time, att, hor, ver);



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