Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Input-loop/GDScript/input-loop.gd
Normal file
13
Task/Input-loop/GDScript/input-loop.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extends MainLoop
|
||||
|
||||
|
||||
func _process(_delta: float) -> bool:
|
||||
while true:
|
||||
# Read a line from stdin
|
||||
var input: String = OS.read_string_from_stdin()
|
||||
|
||||
# Empty lines are "\n" whereas end of input will be completely empty.
|
||||
if len(input) == 0:
|
||||
break
|
||||
printraw(input)
|
||||
return true # Exit
|
||||
Loading…
Add table
Add a link
Reference in a new issue