2 # -*- coding: utf-8 -*-
3 """Skeletal executable for the mudpy engine."""
5 # Copyright (c) 2004-2013 Jeremy Stanley <fungi@yuggoth.org>. Permission
6 # to use, copy, modify, and distribute this software is granted under
7 # terms provided in the LICENSE file distributed with this software.
9 # core objects for the mudpy engine
13 sys.path.append( os.path.realpath("lib") )
20 # loop indefinitely while the world is not flagged for termination or
21 # there are still connected users
22 while not mudpy.misc.universe.terminate_flag or mudpy.misc.universe.userlist:
24 # the world was flagged for a reload of all code/data
25 if mudpy.misc.universe.reload_flag:
27 mudpy.misc.reload_data()
28 mudpy.misc.universe.reload_flag = False
30 # do what needs to be done on each pulse