mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 07:32:35 +00:00
27 lines
405 B
Ruby
27 lines
405 B
Ruby
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 |