WheelMUD
WheelMUD copied to clipboard
After character creation the context is unclear
Once the character creation process is finished and the player enters the world, providing the results of a Look command or priming the player input buffer with LOOK might help alleviate the uncertainty.
I'm preparing the AppConfigInfo.Instance.AutomaticLoginCommand property now which will have a default value of "look".
I think we can finish implementing this feature by registering a global login event handler when that property !IsNullOrWhiteSpace, which will process that command on behalf of every freshly logged in player. (Trying to process the command during PlayingState's constructor is too early as the command would be processed by the previous, still-registered state.)
(Search for WheelMUD/issues/56 in code for related adjustment sites.)
It occurred to me that PlayerBehavior should probably register to Movement Events of the Player Thing it is attached to, to automatically trigger a look on behalf of the player any time they are attached to a room for any reason. E.G. after the player uses "east" they should probably also see the new room. Same result if they walked through a portal or got moved by fleeing or other transport code or teleported by an admin, etc.
Maybe that would be sufficient to cover the login case: If they are freshly loaded, maybe we (do or should) generate a movement event for attaching that player to the room they're loading into, and if they're reconnecting from a network issue and haven't yet been unloaded from link-death, they probably don't need a fresh "look" at the room they're in anyways.