Commit graph

3929 commits

Author SHA1 Message Date
Vincent Le Goff
bc9bfb3fa7 Move the interrupting exception of events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
96b90dde1e Adopt the new names for the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
17b546c041 Update the README file, merging documents 2017-05-06 14:42:57 +02:00
Vincent Le Goff
08fd37aa98 Update event typeclasses to use inheritance instead of hook patching 2017-05-06 14:42:57 +02:00
Vincent Le Goff
1caf5e988c Add new events for objects 2017-05-06 14:42:57 +02:00
Vincent Le Goff
69c5c2c554 Update the msg_leave and msg_arrive events to use the new hooks 2017-05-06 14:42:57 +02:00
Vincent Le Goff
78ad2135d4 Add some character and room event types 2017-05-06 14:42:57 +02:00
Vincent Le Goff
ae79ca96a7 Fix errors in unittests and conflicts with the events handler 2017-05-06 14:42:57 +02:00
Vincent Le Goff
fb299adaaa Fix a locking error when quitting the EvEditor without saving.
Add events on characters and rooms.
2017-05-06 14:42:57 +02:00
Vincent Le Goff
52505a705a Update the user documentation of the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
1cfaf77df7 Add an error handler if errors occurr during event execution
Optimize time events with fewer restarts
2017-05-06 14:42:57 +02:00
Vincent Le Goff
44a73acd94 Chained events can now be called without delay 2017-05-06 14:42:57 +02:00
Vincent Le Goff
d483726d54 Add unittests for the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
fae5877843 Fix a bug in Character.announce_move_to 2017-05-06 14:42:57 +02:00
Vincent Le Goff
c996e8c4b5 Add events on exits 2017-05-06 14:42:57 +02:00
Vincent Le Goff
9c091b29e9 Fix some minor bugs in event connection/locking 2017-05-06 14:42:57 +02:00
Vincent Le Goff
38563a6593 Add an event handler on all objects 2017-05-06 14:42:57 +02:00
Vincent Le Goff
81f4c590bd Bring the event system to Evennia-style compliance 2017-05-06 14:42:57 +02:00
Vincent Le Goff
629ac73f2b Add the @event/tasks switch to follow differed tasks 2017-05-06 14:42:57 +02:00
Vincent Le Goff
9fc163df57 Add a lock on editing events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
ccdb56c139 Add the @event/del switch to delete events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
8dc5c69d00 Fix a bug in time-related events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
d6c9d28d4f Add chained events with persistent delays 2017-05-06 14:42:57 +02:00
Vincent Le Goff
e898ee0ec2 Add the time-related events and events with parameters 2017-05-06 14:42:57 +02:00
Vincent Le Goff
1f4095c625 Rename the 'extend' module in 'custom' for events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
f0d5bec05f The @event/accept can now be used without parameters to see all events to be accepted 2017-05-06 14:42:57 +02:00
Vincent Le Goff
93c7b25fc4 Add the @event/accept switch 2017-05-06 14:42:57 +02:00
Vincent Le Goff
5e43f1370f Set @event/edit to be more clever when selecting events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
88516630db Set event types in non-persistent data for the event handler 2017-05-06 14:42:57 +02:00
Vincent Le Goff
4bdee14adb Add the /add and /edit switches to the @event command 2017-05-06 14:42:57 +02:00
Vincent Le Goff
0d7b1cb2be Add the basic of the @event command 2017-05-06 14:42:57 +02:00
Vincent Le Goff
51bc9ac65a Add the first event on exit.at_traverse 2017-05-06 14:42:57 +02:00
Vincent Le Goff
74ab1ed030 Add basic structure of event types and helpers 2017-05-06 14:42:57 +02:00
Vincent Le Goff
9f581ea7e1 Add user documentation for the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
a88e7ad4d9 Fix a typo in the README file 2017-05-06 14:42:57 +02:00
Vincent Le Goff
5e242589d9 Rewrite the README in a development-oriented documentation 2017-05-06 14:42:57 +02:00
Vincent Le Goff
841e0031ae Add the first draft of documentation for the event system 2017-05-06 14:42:57 +02:00
Tehom
5de1f7b45b Add dbclass to names of classdict for cache_size function to remove duplicate entries 2017-05-06 03:21:50 -04:00
Griatch
4d8d26fd21 Fix small typo in settings. Resolves #1316. 2017-05-03 22:52:08 +02:00
BattleJenkins
9b3ca3ef20 More thorough explanation of clothing types
Added some further explanation of clothing types and their purpose. I felt like it wasn't clear enough that you could change the given clothing types or even elect not to use clothing types at all in your own implementation of the system.
2017-04-30 21:59:41 +02:00
Griatch
477d7883c8 Fix so evennia.utils.delay actually returns a deferred as the docstring says. 2017-04-25 23:34:44 +02:00
Griatch
d012974650 Fix bug in irc disconnect, trying to pass a reason when portal.disconnect does not support one. 2017-04-25 22:59:59 +02:00
Griatch
6a621af4d7 Remove spurious whitespace from sources. 2017-04-23 14:06:27 +02:00
CloudKeeper1
9c37665f00 Updated documentation.
Updated documentation explaining use. Also mentioned the result of chaining get_inputs.
2017-04-23 14:06:27 +02:00
CloudKeeper1
4327bc48d3 Extended get_input to accept *args & **kwargs
Calling get_input with args and kwargs passes them to the callback function. Does not affect previous use so no changed required to existing code.
2017-04-23 14:06:27 +02:00
Tehom
7e8e47b3b3 Fix attribute name to resolve recursion error in _recache method. 2017-04-20 14:14:00 -04:00
BlauFeuer
ae2c2be8a1 Fix to color normalization end tag in Telnet.
Initial fix in #1243 does not account for empty string.
Addresses a potential problem in Telnet prompt similar to IndexError in telnet.py #1306
2017-04-19 06:40:51 +02:00
BlauFeuer
154799f6e0 Fix to color normalization end tag in ssh.
Initial fix in #1243 does not account for empty string.
Addresses a potential problem similar to IndexError in telnet.py #1306
2017-04-19 06:40:51 +02:00
Griatch
f7955340a7 Remove ability to teleport puppeted objects to a None location, as per #1304. 2017-04-18 18:29:11 +02:00
Griatch
feed89257f Fix indexing bug with using an accidental :: prefix in EvEditor, fix function of the ::: editor command. 2017-04-18 00:45:38 +02:00