teeworlds_network/docs/classes/TeeworldsServer.md

3.7 KiB

TeeworldsServer

#on_tick(&block)

Parameter: block [Block |context|]

context.message is nil because there is no message payload.

Example:

server = TeeworldsServer.new

server.on_tick do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_client_drop(&block)

Parameter: block [Block |context|]

context.message is a SvClientDrop

Example:

server = TeeworldsServer.new

server.on_client_drop do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_input(&block)

Parameter: block [Block |context|]

TODO: generated documentation

Example:

server = TeeworldsServer.new

server.on_input do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_enter_game(&block)

Parameter: block [Block |context|]

TODO: generated documentation

Example:

server = TeeworldsServer.new

server.on_enter_game do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_start_info(&block)

Parameter: block [Block |context|]

TODO: generated documentation

Example:

server = TeeworldsServer.new

server.on_start_info do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_ready(&block)

Parameter: block [Block |context|]

TODO: generated documentation

Example:

server = TeeworldsServer.new

server.on_ready do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_info(&block)

Parameter: block [Block |context|]

TODO: generated documentation

Example:

server = TeeworldsServer.new

server.on_info do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_emote(&block)

Parameter: block [Block |context|]

TODO: generated documentation

Example:

server = TeeworldsServer.new

server.on_emote do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_shutdown(&block)

Parameter: block [Block |context|]

TODO: generated documentation

Example:

server = TeeworldsServer.new

server.on_shutdown do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_rcon_cmd(&block)

Parameter: block [Block |context|]

TODO: generated documentation

Example:

server = TeeworldsServer.new

server.on_rcon_cmd do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_rcon_auth(&block)

Parameter: block [Block |context|]

TODO: generated documentation

Example:

server = TeeworldsServer.new

server.on_rcon_auth do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)

#on_chat(&block)

Parameter: block [Block |context|]

context.message is nil because there is no message payload.

Example:

server = TeeworldsServer.new

server.on_chat do |context|
  # TODO: generated documentation
end

server.run('127.0.0.1', 8377)