LuaInterface.LuaFunction.Call C# (CSharp) Method

Call() public method

public Call ( ) : object[]
return object[]
        public object[] Call(params object[] args)
        {
            BeginPCall();
            int count = args == null ? 0 : args.Length;

            if (!luaState.LuaCheckStack(count + 6))
            {
                EndPCall();
                throw new LuaException("stack overflow");
            }

            PushArgs(args);
            PCall();
            object[] objs = luaState.CheckObjects(oldTop);
            EndPCall();
            return objs;
        }

Same methods

LuaFunction::Call ( ) : void

Usage Example

示例#1
0
 public static void NetworkDecodeRecv(NetworkPeerLua peer, string msgName, MemoryStream stream, LuaFunction func)
 {
     if (_decodeRecvMethod != null)
     {
         if (stream == null)
         {
             _decodeRecvMethod.Call(peer, msgName, null, func);
         }
         else
         {
             _decodeRecvMethod.Call(peer, msgName, new PBStreamReader(stream.ToArray()), func);
         }
     }
 }
All Usage Examples Of LuaInterface.LuaFunction::Call