Feature request (Devel): Add **kwargs support to object at_* hooks #1276
Labels
devel-implemented
Already finished, usually in a branch not yet merged.
feature-request
A suggestion for new functionality.
Projects
Description of requested feature:
The current Object hooks
at_give,at_looketc have a fixed call sign, for exampleat_look(self, target). This feature request aims to expand their callsign with an, by default unused,**kwargsargument, so the new signature would beat_look(self, target, **kwargs).Reasons for adding feature:
Adding an extra
**kwargsallows the developer to inject custom extra arguments into the hook. This would not be used by default Evennia but could be of interest on a per-game basis. Adding a**kwargsalso has the advantage of not affecting already existing code - if not included in the call it is just ignored.Potentially many of the default hooks could benefit from the same flexibility (some already do).
Extra information, such as Evennia revision/repo/branch, operating system and ideas for how to solve / implement:
This is an API change slated for the Devel branch, leading up to Evennia 0.7.
The text was updated successfully, but these errors were encountered: