Stubbed files for simplified networking system

This commit is contained in:
2020-07-20 21:36:56 -05:00
parent e69dd3402d
commit 2a36c58abe
5 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
class Connection
def initialize(hostname:, port:, max_clients:, channels: 1)
end
# Callbacks #
def connected
end
def disconnected(reason)
end
def reconnected
end
def packet_received(message, channel)
end
# Functions #
def send_packet(message, reliable, channel = 0)
end
def broadcast_packet(message, reliable, channel = 0)
end
def disconnect(reason = "")
end
end