seisatsu / DennisMUD

Dennis MUD - A multiplayer text adventure sandbox engine where the players build the world with in-game commands.
https://dennismud.xyz/
MIT License
51 stars 6 forks source link

Turn common command module procedures into reusable functions. #26

Closed seisatsu closed 4 years ago

seisatsu commented 6 years ago

Most of the code in command modules is duplicated across several modules. Common procedures should be split off into utility functions to make command code shorter and more readable.

These common functions will be kept in commands/_util.py. Python files starting with an underscore in the commands folder will be importable by command modules, but will not themselves be loaded in as command modules.

seisatsu commented 4 years ago

In progress. Common command tasks are being added to the Common module, which provides the builtin COMMON.