コード例 #1
0
 static int PlayEnd(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         AnimatorPlayEnd obj = (AnimatorPlayEnd)ToLua.CheckObject <AnimatorPlayEnd>(L, 1);
         obj.PlayEnd();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
    private static int PlayEnd(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            AnimatorPlayEnd animatorPlayEnd = (AnimatorPlayEnd)ToLua.CheckObject(L, 1, typeof(AnimatorPlayEnd));
            animatorPlayEnd.PlayEnd();
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }
コード例 #3
0
    static int set_isPlaying(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            AnimatorPlayEnd obj  = (AnimatorPlayEnd)o;
            bool            arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.isPlaying = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isPlaying on a nil value"));
        }
    }
コード例 #4
0
    static int get_isPlaying(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            AnimatorPlayEnd obj = (AnimatorPlayEnd)o;
            bool            ret = obj.isPlaying;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isPlaying on a nil value"));
        }
    }
コード例 #5
0
    private static int set_isPlaying(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            AnimatorPlayEnd animatorPlayEnd = (AnimatorPlayEnd)obj;
            bool            isPlaying       = LuaDLL.luaL_checkboolean(L, 2);
            animatorPlayEnd.isPlaying = isPlaying;
            result = 0;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index isPlaying on a nil value");
        }
        return(result);
    }