oldschool-toontown/toontown/ai/ToontownAIMsgTypes.py
Little Cat 869100692a
base: Silence execwarnings on dev.
Yes, this makes the warnings show up on client as well, because truth be told, having exec and eval calls on production builds is a very bad idea.
2021-07-09 01:51:16 -03:00

16 lines
543 B
Python

from otp.ai.AIMsgTypes import *
TTAIMsgName2Id = {'DBSERVER_GET_ESTATE': 1040,
'DBSERVER_GET_ESTATE_RESP': 1041,
'PARTY_MANAGER_UD_TO_ALL_AI': 1042,
'IN_GAME_NEWS_MANAGER_UD_TO_ALL_AI': 1043,
'WHITELIST_MANAGER_UD_TO_ALL_AI': 1044}
TTAIMsgId2Names = invertDictLossless(TTAIMsgName2Id)
if not __debug__ or __execWarnings__:
print('EXECWARNING ToontownAIMsgTypes: %s' % TTAIMsgName2Id)
printStack()
for name, value in list(TTAIMsgName2Id.items()):
exec('%s = %s' % (name, value))
del name
del value
DBSERVER_PET_OBJECT_TYPE = 5