move network functionality to new file

This commit is contained in:
Redo0
2021-06-05 17:49:58 -05:00
parent 5b8a1ea850
commit 14c61e35d1
5 changed files with 295 additions and 281 deletions

View File

@@ -365,7 +365,7 @@ function Simulation.sendfxupdate(sim)
data = data .. "\t" .. Wire.getobjref(wire)
end
client:send("WU\t" .. data .. "\n")
network_send("WU\t" .. data .. "\n")
end
end
@@ -384,7 +384,7 @@ function Simulation.sendcallbacks(sim)
data = data .. "\t" .. objref .. "\t"..(#escargs)..(#escargs>0 and ("\t"..table.concat(escargs, "\t")) or "")
end
client:send(data .. "\n")
network_send(data .. "\n")
sim.callbacks = nil
end
end