evennia/src/commands
Griatch c7cbc4854e Reworked object command tables.
Object commands used to require re-adding every call in the script parent's __init__ or factory functions, adding the commands to a new command table directly on the object. Since all other attributes can be set up in at_object_creation(), this was both inconsistent and a bit confusing to work with. There is now a method add_commands() directly defined on all objects. It takes the same arguments as the normal add_command()o but use a reserved attribute to create and update a command table on the object. This has the advantange of completely removing the __init__ call in the script parent, all definitions can now be kept in at_object_creation() and are, more importantly, persistent without having to be recreated every call.
- I updated the examine command to show all the commands defined on an object (if any).
- I updated gamesrc/parents/examples/red_button.py considerably using the new command methodology and also using the updated Events.
.
Griatch
2009-12-03 00:41:53 +00:00
..
__init__.py Even more death and destruction. A lot more stuff moved to src/. A lot more bugs probably introduced. 2008-06-15 19:38:39 +00:00
batchprocess.py Updated the batch processor to use the new global cache system instead of the custom dict-based cache it used before. Much cleaner now. 2009-11-25 23:23:24 +00:00
comsys.py Many small but useful bug fixes in various modules. 2009-10-20 20:38:24 +00:00
general.py Various cleanups in the recent modifications, and improvements to how time is handled and displayed. 2009-11-25 19:27:32 +00:00
imc2.py Largely rewrote and refactored the help system. 2009-10-14 18:15:15 +00:00
info.py Various cleanups in the recent modifications, and improvements to how time is handled and displayed. 2009-11-25 19:27:32 +00:00
irc.py Largely rewrote and refactored the help system. 2009-10-14 18:15:15 +00:00
objmanip.py Reworked object command tables. 2009-12-03 00:41:53 +00:00
paging.py Largely rewrote and refactored the help system. 2009-10-14 18:15:15 +00:00
parents.py Largely rewrote and refactored the help system. 2009-10-14 18:15:15 +00:00
privileged.py Added more stable events. 2009-11-18 20:10:35 +00:00
search.py Largely rewrote and refactored the help system. 2009-10-14 18:15:15 +00:00
unloggedin.py Largely rewrote and refactored the help system. 2009-10-14 18:15:15 +00:00