Volte6 / GoMud

Public repository for GoMud, a Go based Mud server.
GNU General Public License v3.0
28 stars 4 forks source link

Implemented a basic prompt system for within usercommands #7

Closed Volte6 closed 7 months ago

Volte6 commented 7 months ago

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 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: