Class: GameOverseer::ENetServerRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/gameoverseer/server/renet_server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#supervisorObject (readonly)

Returns the value of attribute supervisor.



121
122
123
# File 'lib/gameoverseer/server/renet_server.rb', line 121

def supervisor
  @supervisor
end

Instance Method Details

#start(host, port, packet_handler = PacketHandler, encryption_handler = nil) ⇒ Object



122
123
124
# File 'lib/gameoverseer/server/renet_server.rb', line 122

def start(host, port, packet_handler = PacketHandler, encryption_handler = nil)
  @supervisor = GameOverseer::ENetServer.new(host, port, packet_handler, encryption_handler)
end