-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alternate solution to command api. (#446)
# Objective I want to add commands ergonomically, unfortunately @Jenya705 's implementation did not look to promising for my purposes so I am working on an alternative command api. # Solution lib-users should be able to make commands quickly and easily. Some objectives in the order I plan to implement them: - [x] Sync commands to players based on command visibility scope. - [x] Derive Macro - [x] Execute and handle commands. - [x] Parse commands with a lot of lib-user friendly options. - [ ] ~~Handle server-side suggestions.~~ (this has been defered to the future) --------- Co-authored-by: Carson McManus <[email protected]> Co-authored-by: Ryan Johnson <[email protected]>
- Loading branch information
1 parent
99f88ae
commit f43e60e
Showing
36 changed files
with
4,743 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[package] | ||
name = "valence_command" | ||
description = "Command management for Valence" | ||
readme = "README.md" | ||
version.workspace = true | ||
edition.workspace = true | ||
repository.workspace = true | ||
documentation.workspace = true | ||
license.workspace = true | ||
|
||
[dependencies] | ||
anyhow.workspace = true | ||
bevy_app.workspace = true | ||
bevy_derive.workspace = true | ||
bevy_ecs.workspace = true | ||
byteorder.workspace = true | ||
ordered-float.workspace = true | ||
petgraph.workspace = true | ||
thiserror.workspace = true | ||
tracing.workspace = true | ||
|
||
valence_server.workspace = true | ||
valence_text.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Valence Command | ||
|
||
This plugin manages the command system for a valence server. It is responsible for parsing, storing, managing and | ||
dispatching commands. | ||
|
||
#### This plugin manages the following: | ||
|
||
- Registering commands to a Command Graph which is used parse commands. | ||
- Receiving commands from the client and turning them into events. | ||
- Parsing commands and dispatching them in the registered executable format. | ||
- Sending the command graph to clients. | ||
|
||
See the module level documentation for more information. |
Oops, something went wrong.
f43e60e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉