Changeset 195:445a28f4b38e


Ignore:
Timestamp:
04/06/11 20:04:19 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
61613264636363626466316561316331333265616664313964653031316136643661623533383566
Message:

Fix npc tester.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/npc-test

    r153 r195  
    1010
    1111from skaapsteker.dialogue import DSM, DsmEvent, DummyWorld
     12from skaapsteker.gamestate import GameState
    1213
    1314
    1415def run(npc_file):
    15     world = DummyWorld()
    16     dsm = DSM(npc_file, world)
     16    game = GameState("game.json")
     17    name = os.path.splitext(os.path.basename(npc_file))[0]
     18    dsm = DSM(name, game.world, npc_file)
    1719
    1820    print "States:"
Note: See TracChangeset for help on using the changeset viewer.