Mercurial > parpg-core
diff src/parpg/world.py @ 192:191f89a22303
Further work on the scripting system.
author | KarstenBock@gmx.net |
---|---|
date | Sun, 13 Nov 2011 17:19:14 +0100 |
parents | 61d158ce6bc3 |
children |
line wrap: on
line diff
--- a/src/parpg/world.py Sun Nov 13 13:37:24 2011 +0100 +++ b/src/parpg/world.py Sun Nov 13 17:19:14 2011 +0100 @@ -3,7 +3,9 @@ from parpg.mode import FifeMode from parpg import components +from parpg.components.fifeagent import commands from parpg.systems import ScriptingSystem +from parpg.entities.action import ACTIONS class World(FifeMode, BaseWorld): @@ -15,7 +17,7 @@ """Configure the game world's components, systems and renderers""" for name, component in components.components.iteritems(): setattr(self.components, name, component) - self.systems.scripting = ScriptingSystem({}) + self.systems.scripting = ScriptingSystem(commands, ACTIONS) def pump(self, dt): for component in self.components: