move network functionality to new file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user