Mercurial > touhou
comparison pytouhou/vm/anmrunner.py @ 590:e15672733c93
Switch to Python 3.x instead of 2.7.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 30 Sep 2014 17:14:24 +0200 |
parents | e4c9eafab6d0 |
children |
comparison
equal
deleted
inserted
replaced
589:0768122da817 | 590:e15672733c93 |
---|---|
19 from pytouhou.vm.common import MetaRegistry, instruction | 19 from pytouhou.vm.common import MetaRegistry, instruction |
20 | 20 |
21 logger = get_logger(__name__) | 21 logger = get_logger(__name__) |
22 | 22 |
23 | 23 |
24 class ANMRunner(object): | 24 class ANMRunner(metaclass=MetaRegistry): |
25 __metaclass__ = MetaRegistry | |
26 __slots__ = ('_anm', '_sprite', 'running', 'sprite_index_offset', 'script', | 25 __slots__ = ('_anm', '_sprite', 'running', 'sprite_index_offset', 'script', |
27 'instruction_pointer', 'frame', 'waiting', 'handlers', | 26 'instruction_pointer', 'frame', 'waiting', 'handlers', |
28 'variables', 'version', 'timeout') | 27 'variables', 'version', 'timeout') |
29 | 28 |
30 #TODO: check! | 29 #TODO: check! |