summaryrefslogtreecommitdiff
path: root/servergreps/hercules/src/manaplus.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-05 17:34:04 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-05 17:34:04 +0300
commit11a56ba1da1a84063f02979aef2a426b5782faa3 (patch)
tree5347fdbaaf3cba8d07a493c1551968dbf6857ea8 /servergreps/hercules/src/manaplus.py
parentf983fe42aa7ddb24488bc020c4a1d9e6c19f6feb (diff)
downloadevol-tools-11a56ba1da1a84063f02979aef2a426b5782faa3.tar.gz
evol-tools-11a56ba1da1a84063f02979aef2a426b5782faa3.tar.bz2
evol-tools-11a56ba1da1a84063f02979aef2a426b5782faa3.tar.xz
evol-tools-11a56ba1da1a84063f02979aef2a426b5782faa3.zip
servergreps: move handling packets functions calls into each class.
Diffstat (limited to 'servergreps/hercules/src/manaplus.py')
-rwxr-xr-xservergreps/hercules/src/manaplus.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/servergreps/hercules/src/manaplus.py b/servergreps/hercules/src/manaplus.py
index 144dd3f..56fd11c 100755
--- a/servergreps/hercules/src/manaplus.py
+++ b/servergreps/hercules/src/manaplus.py
@@ -87,3 +87,11 @@ class ManaPlus:
m = self.packetOutNametre.search(line)
if m is not None:
self.manaplusUsedPacketsSet.add(m.group("name"))
+
+ def processPackets(self, packetVersion):
+ manaplusPath = "../../../manaplus/src/"
+ protocolPath = manaplusPath + "net/eathena/packets"
+ eathenaPath = manaplusPath + "net/eathena/"
+ self.collectInPackets(protocolPath + "in.inc", int(packetVersion))
+ self.collectOutPackets(protocolPath + "out.inc", int(packetVersion))
+ self.processCppFiles(eathenaPath)