mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 07:27:17 +02:00
Scripting support is now in! See cmd_look (the end of it), scripthandler.py, and scripts/basicobject.py for very brief examples. I'm not sure how well this is going to scale, I had to kludge the import a bit due to some oddities with __import__. There has to be a better way to do this, hopefully I'll be able to figure it out. In any case, expect basicobject to start fleshing out. You'll be able to use it directly or sub-class it with your own stuff.
This commit is contained in:
parent
27c0e7a873
commit
94ceec3719
5 changed files with 91 additions and 10 deletions
|
|
@ -25,6 +25,7 @@ class EvenniaService(service.Service):
|
|||
log.startLogging(open(settings.LOGFILE, 'w'))
|
||||
self.cmd_alias_list = {}
|
||||
self.game_running = True
|
||||
sys.path.append('.')
|
||||
|
||||
# Database-specific startup optimizations.
|
||||
if settings.DATABASE_ENGINE == "sqlite3":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue