Call() public method

public Call ( ) : bool
return bool
Example #1
0
    static int Call(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                FairyGUI.EventListener obj = (FairyGUI.EventListener)ToLua.CheckObject <FairyGUI.EventListener>(L, 1);
                bool o = obj.Call();
                LuaDLL.lua_pushboolean(L, o);
                return(1);
            }
            else if (count == 2)
            {
                FairyGUI.EventListener obj = (FairyGUI.EventListener)ToLua.CheckObject <FairyGUI.EventListener>(L, 1);
                object arg0 = ToLua.ToVarObject(L, 2);
                bool   o    = obj.Call(arg0);
                LuaDLL.lua_pushboolean(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.EventListener.Call"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static public int Call(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             FairyGUI.EventListener self = (FairyGUI.EventListener)checkSelf(l);
             var ret = self.Call();
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 2)
         {
             FairyGUI.EventListener self = (FairyGUI.EventListener)checkSelf(l);
             System.Object          a1;
             checkType(l, 2, out a1);
             var ret = self.Call(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        public MovieClip()
        {
            playState = new PlayState();
            interval = 0.1f;
            _playing = true;

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

            SetPlaySettings();
        }
Example #4
0
        /// <summary>
        ///
        /// </summary>
        public MovieClip()
        {
            playState = new PlayState();
            interval  = 0.1f;
            _playing  = true;

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

            SetPlaySettings();
        }