From 11a56ba1da1a84063f02979aef2a426b5782faa3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Sep 2016 17:34:04 +0300 Subject: servergreps: move handling packets functions calls into each class. --- servergreps/hercules/src/manaplus.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'servergreps/hercules/src/manaplus.py') 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) -- cgit v1.2.3-70-g09d2