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

@@ -20,7 +20,7 @@ function Wire.setlayer(wire, layer)
end
function Wire.update(wire)
client:send("WU\t" .. (wire.group.state~=0 and "1" or "0") .. "\t" .. wire.objref .. "\n")
network_send("WU\t" .. (wire.group.state~=0 and "1" or "0") .. "\t" .. wire.objref .. "\n")
end
function Wire.setgroup(wire, group)