Make 3 client methods private that should not be called

Makes the user api cleaner
This commit is contained in:
ChillerDragon 2023-09-17 14:49:19 +02:00
parent 90563fbb05
commit e05523f104

View file

@ -343,7 +343,10 @@ class TeeworldsClient
@netbase.send_packet(msg)
end
private
def on_msg_token(data)
# TODO: add hook
@token = bytes_to_str(data)
@netbase.set_peer_token(@token)
puts "Got token #{@token}"
@ -351,6 +354,7 @@ class TeeworldsClient
end
def on_msg_accept
# TODO: add hook
puts 'got accept. connection online'
@state = NET_CONNSTATE_ONLINE
send_info
@ -360,8 +364,6 @@ class TeeworldsClient
@game_client.on_disconnect(data)
end
private
# CClient::ProcessConnlessPacket
def on_ctrl_message(msg, data)
case msg