mirror of
https://github.com/CPunch/gopenfusion.git
synced 2025-05-04 17:00:07 +00:00
Compare commits
No commits in common. "3e04103ae4a0784578d54d56f8b5f561d5e08f7b" and "a78dedcb8931291371b2f2d4b83ab0a18ff50dae" have entirely different histories.
3e04103ae4
...
a78dedcb89
File diff suppressed because it is too large
Load Diff
@ -368,13 +368,6 @@ if __name__ == '__main__':
|
||||
source += "\t%s = 0x%x\n" % (const.name, const.value)
|
||||
source += ")\n\n"
|
||||
|
||||
source += "func PacketIDToString(id uint32) string {\n"
|
||||
source += "\tswitch id {\n"
|
||||
for const in consts:
|
||||
if const.name.startswith("P_"):
|
||||
source += "\tcase %s:\n\t\treturn \"%s\"\n" % (const.name, const.name)
|
||||
source += "\t}\n\treturn \"UNKNOWN\"\n}\n\n"
|
||||
|
||||
for struct in structs:
|
||||
source += struct.toGoStyle() + "\n"
|
||||
print(source)
|
||||
|
Loading…
x
Reference in New Issue
Block a user