Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved Code Success! #222

Conversation

tristanpoland
Copy link
Member

This pull request includes several changes to the stars_beyond and player_lib backends, as well as the server module. The changes introduce new dependencies, update function implementations, and reorganize code for better modularity.

Dependency Updates:

  • Added serde_json to backends/stars_beyond/Cargo.toml and plugins/player_lib/Cargo.toml. [1] [2]
  • Added serde and uuid to plugins/player_lib/Cargo.toml.

Code Reorganization:

  • Renamed and moved server/src/server/in_world/mod.rs to plugins/player_lib/src/world.rs.
  • Removed unused import plugin_api::* from server/src/server/mod.rs.

Function Implementation Updates:

  • Updated player_joined function in backends/stars_beyond/src/lib.rs to include new event handling logic using serde_json and world::Object.
  • Modified setup_listeners function to accept a reference to SocketRef.

Miscellaneous:

  • Added pub mod world to plugins/player_lib/src/lib.rs.
  • Simplified import statement in server/src/server/mod.rs.

backends/stars_beyond/src/lib.rs Fixed Show resolved Hide resolved
@SafeShows SafeShows merged commit 094cd60 into main Dec 30, 2024
3 checks passed
@tristanpoland tristanpoland deleted the 219-fix-code-scanning-alert-add-player-joining-object-creation-to-the-backend-example branch January 22, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix code scanning alert - Add player joining object creation to the backend example
2 participants