static int StartShake(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                CBattleEffectController obj  = (CBattleEffectController)ToLua.CheckObject <CBattleEffectController>(L, 1);
                EmShakeType             arg0 = (EmShakeType)ToLua.CheckObject(L, 2, typeof(EmShakeType));
                obj.StartShake(arg0);
                return(0);
            }
            else if (count == 3)
            {
                CBattleEffectController obj = (CBattleEffectController)ToLua.CheckObject <CBattleEffectController>(L, 1);
                int   arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
                obj.StartShake(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: CBattleEffectController.StartShake"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 2
0
    static int IntToEnum(IntPtr L)
    {
        int         arg0 = (int)LuaDLL.lua_tonumber(L, 1);
        EmShakeType o    = (EmShakeType)arg0;

        ToLua.Push(L, o);
        return(1);
    }
Exemplo n.º 3
0
 static void Push(IntPtr L, EmShakeType arg)
 {
     ToLua.Push(L, arg);
 }