BROKEN: Work on netcode refactor

This commit is contained in:
2020-08-01 08:06:05 -05:00
parent 87b4b8ef92
commit e09bd06d24
9 changed files with 106 additions and 99 deletions

View File

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