Added basic dialogs, added 'blindman' implementation of TACNET networking code, added font

This commit is contained in:
2020-06-07 15:18:31 -05:00
parent 5ea8d13653
commit c694d29050
20 changed files with 870 additions and 5 deletions

22
lib/tacnet.rb Normal file
View File

@@ -0,0 +1,22 @@
module TAC
class TACNET
DEFAULT_HOSTNAME = "192.168.49.1"
DEFAULT_PORT = 8962
SYNC_INTERVAL = 250 # ms
HEARTBEAT_INTERVAL = 1_500 # ms
def initialize
@connection = nil
@server = nil
end
def connect(hostname = DEFAULT_HOSTNAME, port = DEFAULT_PORT, error_callback = proc {})
return if @connection && @connect.connected?
@connection = Connection.new(hostname, port)
puts "Connecting..."
@connection.connect(error_callback)
end
end
end