From b3112bd3f6d0887fdf81610327c9edad08a0cfaf Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 10 Jan 2015 17:32:49 -0800 Subject: Use generated config for map --- src/map/mapflag.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/map/mapflag.py') diff --git a/src/map/mapflag.py b/src/map/mapflag.py index fe5b016..b0a2f24 100644 --- a/src/map/mapflag.py +++ b/src/map/mapflag.py @@ -1,6 +1,6 @@ class MapFlags(object): __slots__ = ('_value') - name = 'tmwa::MapFlags' + name = 'tmwa::map::MapFlags' enabled = True def __init__(self, value): @@ -52,12 +52,12 @@ class MapFlags(object): ('RESAVE', 30), ] tests = [ - ('reinterpret_cast(static_cast(0x80000000))', 'MapFlags(0x80000000)'), - ('reinterpret_cast(static_cast(0xf0000000))', 'MapFlags(TOWN | OUTSIDE | RESAVE | 0x80000000)'), + ('reinterpret_cast(static_cast(0x80000000))', 'MapFlags(0x80000000)'), + ('reinterpret_cast(static_cast(0xf0000000))', 'MapFlags(TOWN | OUTSIDE | RESAVE | 0x80000000)'), ] + [ - ('tmwa::MapFlags(); value.set(tmwa::MapFlag::%s, true)' % n, 'MapFlags(%s)' % n) + ('tmwa::map::MapFlags(); value.set(tmwa::map::MapFlag::%s, true)' % n, 'MapFlags(%s)' % n) for (n, _) in junk ] + [ - ('reinterpret_cast(static_cast(1 << %d))' % i, 'MapFlags(%s)' % n) + ('reinterpret_cast(static_cast(1 << %d))' % i, 'MapFlags(%s)' % n) for (n, i) in junk ] -- cgit v1.2.3-70-g09d2