rhelgeby / smprojectbase

Automatically exported from code.google.com/p/smprojectbase
0 stars 0 forks source link

Restructure command system #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When giving commands, make support for writing module/object name first, 
and then action as second parameter.

zr <module short name> disable|enable|reload|info|[other module commands]

zr weapons restrict <weapon>
zr weapons info

There should be common commands for every module, which are handled in the 
module manager (and not duplicated in each module):

- disable
- enable
- reload
- info
- (other generic stuff that's common for all modules)

Original issue reported on code.google.com by richard.helgeby@gmail.com on 1 Mar 2010 at 9:24

GoogleCodeExporter commented 9 years ago
All this does is take out the need to type "modules" which isn't worth the 
amount of code it would take to do..

zr mymod disable
zr modules disable mymod

Also what if a module was named modules?  I would have to add error checking to 
make sure a module name isn't equal to any first-level sub-commands.  Which may 
be impossible if modules are registered before these sub-commands.  I didn't 
check though.

Original comment by andrewbo...@gmail.com on 27 Mar 2011 at 7:54