mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Stubbed files for simplified networking system
This commit is contained in:
27
lib/networking/backend/connection.rb
Normal file
27
lib/networking/backend/connection.rb
Normal 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
|
||||
Reference in New Issue
Block a user