2 """Skeletal executable for the mudpy engine."""
4 # Copyright (c) 2005 mudpy, Jeremy Stanley <fungi@yuggoth.org>, all rights reserved.
5 # Licensed per terms in the LICENSE file distributed with this software.
7 # core objects for the mudpy engine
9 from mudpy import log, on_pulse, reload_data, universe
11 # loop indefinitely while the world is not flagged for termination or
12 # there are connected users
13 while not universe.terminate_world or universe.userlist:
15 # the world was flagged for a reload of all code/data
16 if universe.reload_modules:
18 # reload the mudpy module
21 # move data into new persistent objects
24 # reset the reload flag
25 universe.reload_modules = False
27 # do what needs to be done on each pulse
30 # the loop has terminated, so save persistent data
34 log("Shutting down now.")