flattiverse_connector

Crates.ioflattiverse_connector
lib.rsflattiverse_connector
version42.1.3
sourcesrc
created_at2017-11-16 20:58:45.003702
updated_at2023-02-17 15:04:50.228578
descriptionConnector library for the flattiverse.com game server.
homepagehttps://www.flattiverse.com/
repositoryhttps://github.com/flattiverse/connector-rust.git
max_upload_size
id39596
size190,446
(kellerkindt)

documentation

README

Flattiverse Rust Connector

Homepage: https://flattiverse.com/
GitHub-Dev: https://github.com/flattiverse/
C#-Connector: https://github.com/flattiverse/connector-csharp

The rust implementation of the Flattiverse connector. It uses WebSocket to connect to the Flattiverse servers.

See the examples for how to use this crate

  • examples/console.rs: Demonstrates very basic usage of the connector. Only logs to the console. Shows connecting to the server, sending messages, creating a ship, scanning stuff and processing events.
  • examples/sdl2.rs: Additionally, opens a SDL2-Window, draws the own ship onto it and demonstrates how to process input-events.

Hint compilation

This crate uses rustls for encryption. If you are building in debug mode, consider adding the following to your Cargo.toml to speed up the socket encryption.

[profile.dev.package."*"]
opt-level = 3
Commit count: 411

cargo fmt