97 Commits (8fe7a14a7574426df3e17278d95eb908955b4a66)

Author SHA1 Message Date
rasul 8fe7a14a75 replace ? with try_log! macro to log errors
5 years ago
rasul c84f2e8c5b use RudeResult and take generic errors
5 years ago
rasul f917df3ea1 remove unused use
5 years ago
rasul 80c8b7bf06 rustfmt
5 years ago
rasul c2a42c536f move state changes to iter_once
5 years ago
rasul 53e67fcd1f handle state changes
5 years ago
rasul 85d1eeff70 provide new state
5 years ago
rasul a9cc95ef6c rustfmt
5 years ago
rasul f853002a90 check for valid password at creation
5 years ago
rasul db8e3cf1f7 only proceed if y was selected
5 years ago
rasul 6c0eb7a57d rustfmt
5 years ago
rasul b9156b0300 check that name is valid per name requirements
5 years ago
rasul 70ebf1a210 don't need Id anymore
5 years ago
rasul 0f9da2da65 config.starting_location is now config.player.starting_location
5 years ago
rasul aba6e663df some comments
5 years ago
rasul 7a17fe4a08 use config instead of hard coded values
5 years ago
rasul f4134b1911 add player config section and move starting_location there with the other new player related configs
5 years ago
rasul b7bfda95e9 methods to check if a name or password are valid
5 years ago
rasul 06ce7bec7b use the From<(Token, Into<String>)> impl
5 years ago
rasul 24c6c01da7 subcommand: set room zone : to set zone for the current room
5 years ago
rasul 222aa967a1 rustfmt
5 years ago
rasul 61b769b3c1 add a parse_str() method to Id
5 years ago
rasul c963514967 from implementation to conveniently make SendQueue from (Token, Into<String>)
5 years ago
rasul 77a5df67d8 don't need to use the name mod
5 years ago
rasul 29e6f59864 log error message
5 years ago
rasul 0cff41a4f2 don't need to use name module
5 years ago
rasul faadf904e0 subcommand to change player password
5 years ago
rasul cc10e5001f remove from connected_players when quit
5 years ago
rasul 933c63f717 short comment to describe dispatch_quit()
5 years ago
rasul 0547792265 pass quit state back when player quits, and check for that to close the connection
5 years ago
rasul acc6f26df5 add a quit state for quitting the mud
5 years ago
rasul c0695e30ec pass optional new state back with SendQueue
5 years ago
rasul dece6fa7ce watch for the correct string, and use client.close()
5 years ago
rasul 541698f452 add a close() function to close the connection
5 years ago
rasul 96f623584a rustfmt
5 years ago
rasul cb703cf988 upgrad mio to 0.7
5 years ago
rasul ac26e77d05 short description of database module and struct
5 years ago
rasul 33fa2b5219 describe client module
5 years ago
rasul 6d2a53e53f document command module
5 years ago
rasul bbc85c535a change error message for Default variant
5 years ago
rasul fdab46bef1 document the world module
5 years ago
rasul 3a9cb2fa43 rustfmt
5 years ago
rasul 7e83c23855 improve logging and errors
5 years ago
rasul be45d7fcb7 improve error messages
5 years ago
rasul 0b50ce0650 remove old stuff that was left around commented
5 years ago
rasul 24357a95f8 add some doc comments
5 years ago
rasul eb01abb0f0 comment describing try_from_long()
5 years ago
rasul a9f42be8d8 Zone has From<&Zone> implemented so .into() can be used
5 years ago
rasul a493f868d4 impl From<&Zone> instead of the from_ref() method
5 years ago
rasul df632447fd document Zone struct
5 years ago