Пример #1
0
        public MovieClip()
        {
            playState = new PlayState();
            interval = 0.1f;
            _playing = true;

            onPlayEnd = new EventListener(this, "onPlayEnd");
        }
Пример #2
0
 public void Copy(PlayState src)
 {
     _curFrame = src._curFrame;
     _curFrameDelay = src._curFrameDelay;
     repeatedCount = src.repeatedCount;
     reachEnding = src.reachEnding;
     reversed = src.reversed;
 }
Пример #3
0
        public MovieClip()
        {
            playState = new PlayState();
            interval = 0.1f;
            _playing = true;

            onPlayEnd = new EventListener(this, "onPlayEnd");
            _playEndDelegate = () => { onPlayEnd.Call(); };

            SetPlaySettings();
        }
Пример #4
0
 static public int get_repeatedCount(IntPtr l)
 {
     try {
         FairyGUI.PlayState self = (FairyGUI.PlayState)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.repeatedCount);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #5
0
 static public int Reset(IntPtr l)
 {
     try {
         FairyGUI.PlayState self = (FairyGUI.PlayState)checkSelf(l);
         self.Reset();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #6
0
 static public int get_ignoreTimeScale(IntPtr l)
 {
     try {
         FairyGUI.PlayState self = (FairyGUI.PlayState)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.ignoreTimeScale);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #7
0
 static public int get_currrentFrame(IntPtr l)
 {
     try {
         FairyGUI.PlayState self = (FairyGUI.PlayState)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.currrentFrame);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #8
0
 static public int constructor(IntPtr l)
 {
     try {
         FairyGUI.PlayState o;
         o = new FairyGUI.PlayState();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #9
0
 static public int Copy(IntPtr l)
 {
     try {
         FairyGUI.PlayState self = (FairyGUI.PlayState)checkSelf(l);
         FairyGUI.PlayState a1;
         checkType(l, 2, out a1);
         self.Copy(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #10
0
 static public int set_ignoreTimeScale(IntPtr l)
 {
     try {
         FairyGUI.PlayState self = (FairyGUI.PlayState)checkSelf(l);
         System.Boolean     v;
         checkType(l, 2, out v);
         self.ignoreTimeScale = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #11
0
 static int Reset(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.PlayState obj = (FairyGUI.PlayState)ToLua.CheckObject <FairyGUI.PlayState>(L, 1);
         obj.Reset();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #12
0
 static public int set_currrentFrame(IntPtr l)
 {
     try {
         FairyGUI.PlayState self = (FairyGUI.PlayState)checkSelf(l);
         int v;
         checkType(l, 2, out v);
         self.currrentFrame = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int Copy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.PlayState obj  = (FairyGUI.PlayState)ToLua.CheckObject(L, 1, typeof(FairyGUI.PlayState));
         FairyGUI.PlayState arg0 = (FairyGUI.PlayState)ToLua.CheckObject(L, 2, typeof(FairyGUI.PlayState));
         obj.Copy(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #14
0
 static public int Update(IntPtr l)
 {
     try {
         FairyGUI.PlayState self = (FairyGUI.PlayState)checkSelf(l);
         FairyGUI.MovieClip a1;
         checkType(l, 2, out a1);
         FairyGUI.UpdateContext a2;
         checkType(l, 3, out a2);
         self.Update(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #15
0
 static int Update(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.PlayState     obj  = (FairyGUI.PlayState)ToLua.CheckObject <FairyGUI.PlayState>(L, 1);
         FairyGUI.MovieClip     arg0 = (FairyGUI.MovieClip)ToLua.CheckObject <FairyGUI.MovieClip>(L, 2);
         FairyGUI.UpdateContext arg1 = (FairyGUI.UpdateContext)ToLua.CheckObject <FairyGUI.UpdateContext>(L, 3);
         obj.Update(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #16
0
    static int get_currrentFrame(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PlayState obj = (FairyGUI.PlayState)o;
            int ret = obj.currrentFrame;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index currrentFrame on a nil value"));
        }
    }
    static int get_repeatedCount(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PlayState obj = (FairyGUI.PlayState)o;
            int ret = obj.repeatedCount;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index repeatedCount on a nil value" : e.Message));
        }
    }
Пример #18
0
    static int set_currrentFrame(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PlayState obj = (FairyGUI.PlayState)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.currrentFrame = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index currrentFrame on a nil value"));
        }
    }
Пример #19
0
    static int set_ignoreTimeScale(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PlayState obj = (FairyGUI.PlayState)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.ignoreTimeScale = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreTimeScale on a nil value"));
        }
    }
    static int get_reachEnding(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PlayState obj = (FairyGUI.PlayState)o;
            bool ret = obj.reachEnding;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reachEnding on a nil value" : e.Message));
        }
    }
Пример #21
0
    static int get_reversed(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PlayState obj = (FairyGUI.PlayState)o;
            bool ret = obj.reversed;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index reversed on a nil value"));
        }
    }
Пример #22
0
    static int _CreateFairyGUI_PlayState(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                FairyGUI.PlayState obj = new FairyGUI.PlayState();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.PlayState.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }