comparison pytouhou/vm/msgrunner.py @ 577:e35a083d4208

Move NextStage outside of pytouhou.vm.msg, to be able to use it from anywhere without dependency on EoSD.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 06 Aug 2014 10:50:19 +0200
parents 577c3a88fb67
children e15672733c93
comparison
equal deleted inserted replaced
576:f3778145d7e7 577:e35a083d4208
14 14
15 15
16 from pytouhou.utils.helpers import get_logger 16 from pytouhou.utils.helpers import get_logger
17 17
18 from pytouhou.vm.common import MetaRegistry, instruction 18 from pytouhou.vm.common import MetaRegistry, instruction
19 from pytouhou.game import NextStage
19 20
20 logger = get_logger(__name__) 21 logger = get_logger(__name__)
21
22
23 class NextStage(Exception):
24 pass
25 22
26 23
27 class MSGRunner(object): 24 class MSGRunner(object):
28 __metaclass__ = MetaRegistry 25 __metaclass__ = MetaRegistry
29 __slots__ = ('_msg', '_game', 'frame', 'sleep_time', 'allow_skip', 26 __slots__ = ('_msg', '_game', 'frame', 'sleep_time', 'allow_skip',