summaryrefslogtreecommitdiff
path: root/tools/protocol.py
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-22 13:09:14 -0400
committermekolat <mekolat@users.noreply.github.com>2015-06-20 06:52:33 -0400
commit08809eeb1db043ac72ca8a64f74e9f5ed6a54631 (patch)
treee428ef99dff34cfce275038af64eb367a489dbed /tools/protocol.py
parentef9eb6bde90ec1d9d175b6481935cb3bd67d6c6c (diff)
downloadtmwa-08809eeb1db043ac72ca8a64f74e9f5ed6a54631.tar.gz
tmwa-08809eeb1db043ac72ca8a64f74e9f5ed6a54631.tar.bz2
tmwa-08809eeb1db043ac72ca8a64f74e9f5ed6a54631.tar.xz
tmwa-08809eeb1db043ac72ca8a64f74e9f5ed6a54631.zip
add map mask support
Diffstat (limited to 'tools/protocol.py')
-rwxr-xr-xtools/protocol.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/protocol.py b/tools/protocol.py
index 23a0719..f7be6e5 100755
--- a/tools/protocol.py
+++ b/tools/protocol.py
@@ -4703,7 +4703,20 @@ def build_context():
Send mob walkpath data to client
''',
)
- # 0x0226 define='SMSG_MAP_MASK',
+ map_user.s(0x0226, 'send map mask',
+ define='SMSG_MAP_MASK',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, u32, 'mask'),
+ at(6, u32, 'unused'),
+ ],
+ fixed_size=10,
+ pre=[NOTHING],
+ post=[PRETTY],
+ desc='''
+ Set map mask
+ ''',
+ )
map_user.s(0x0227, 'change map music',
define='SMSG_MAP_MUSIC',
head=[