21 lines
511 B
Plaintext
21 lines
511 B
Plaintext
submit_definition = function(State)
|
|
State.load_time_error = nil
|
|
live.send_definition_to_app(State)
|
|
while true do
|
|
local response_string = live.receive_from_app()
|
|
if response_string then
|
|
Client_app_test_failures = json.decode(response_string)
|
|
break
|
|
end
|
|
if live.receive_run_time_error_from_app() then
|
|
break
|
|
end
|
|
love.timer.sleep(0.001)
|
|
end
|
|
if Load_time_error then
|
|
State.load_time_error = Load_time_error
|
|
Load_time_error = nil
|
|
end
|
|
if on.code_submit then on.code_submit(State) end
|
|
end
|