Some system is needed to prompt players for information, possibly in multiple stages, and still keep from halting processing of a thread. This provides that.
Considerations
Currently the prompt package is its own package. It probably makes more sense to move all of the functionality to the UserRecord struct, since it no longer needs to be functional at the network layer / out of world. I'll probably move it in a future change.
I've implemented the prompt two places currently:
After signing up as a new user, the start command will prompt users for their race, and a name for their character.
The picklock user command now uses a prompt loop to progress the lock picking, instead of typing out full commands one at a time.
Motivation
Some system is needed to prompt players for information, possibly in multiple stages, and still keep from halting processing of a thread. This provides that.
Considerations
Currently the
prompt
package is its own package. It probably makes more sense to move all of the functionality to theUserRecord
struct, since it no longer needs to be functional at the network layer / out of world. I'll probably move it in a future change.I've implemented the prompt two places currently:
start
command will prompt users for their race, and a name for their character.picklock
user command now uses a prompt loop to progress the lock picking, instead of typing out full commands one at a time.