示例#1
0
 static int Stop(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ChipAnim obj = (ChipAnim)ToLua.CheckObject <ChipAnim>(L, 1);
         obj.Stop();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#2
0
 static int AddDoneFunction(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ChipAnim    obj  = (ChipAnim)ToLua.CheckObject <ChipAnim>(L, 1);
         LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
         obj.AddDoneFunction(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#3
0
    static int set_DoneFunction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChipAnim    obj  = (ChipAnim)o;
            LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
            obj.DoneFunction = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index DoneFunction on a nil value"));
        }
    }
示例#4
0
    static int set_Loop(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChipAnim obj  = (ChipAnim)o;
            bool     arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.Loop = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Loop on a nil value"));
        }
    }
示例#5
0
    static int set_SpriteFrames(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChipAnim obj = (ChipAnim)o;
            System.Collections.Generic.List <UnityEngine.Sprite> arg0 = (System.Collections.Generic.List <UnityEngine.Sprite>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Sprite>));
            obj.SpriteFrames = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index SpriteFrames on a nil value"));
        }
    }
示例#6
0
    static int set_FPS(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChipAnim obj  = (ChipAnim)o;
            float    arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.FPS = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index FPS on a nil value"));
        }
    }
示例#7
0
    static int get_FrameCount(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChipAnim obj = (ChipAnim)o;
            int      ret = obj.FrameCount;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index FrameCount on a nil value"));
        }
    }
示例#8
0
    static int get_DoneFunction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChipAnim obj = (ChipAnim)o;
            LuaInterface.LuaFunction ret = obj.DoneFunction;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index DoneFunction on a nil value"));
        }
    }
示例#9
0
    static int get_Loop(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChipAnim obj = (ChipAnim)o;
            bool     ret = obj.Loop;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Loop on a nil value"));
        }
    }
示例#10
0
    static int get_SpriteFrames(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChipAnim obj = (ChipAnim)o;
            System.Collections.Generic.List <UnityEngine.Sprite> ret = obj.SpriteFrames;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index SpriteFrames on a nil value"));
        }
    }
示例#11
0
    static int get_FPS(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChipAnim obj = (ChipAnim)o;
            float    ret = obj.FPS;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index FPS on a nil value"));
        }
    }