Sfoglia il codice sorgente

Opened finishLastLine to script

Opened finishLastLine to script so you can eat the rest of the lines in
script.
Nathan Bowhay 11 anni fa
parent
commit
0a76809092
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      Engine/source/app/net/tcpObject.cpp

+ 5 - 0
Engine/source/app/net/tcpObject.cpp

@@ -457,6 +457,11 @@ DefineEngineMethod(TCPObject, sendFile, bool, (const char *fileName),,
 	return object->sendFile(fileName);
 }
 
+DefineEngineMethod(TCPObject, finishLastLine, void, (),, 
+   "@brief Eat the rest of the lines.\n")
+{
+	object->finishLastLine();
+}
 
 DefineEngineMethod(TCPObject, listen, void, (U32 port),, 
    "@brief Start listening on the specified port for connections.\n\n"