historical/toontown-just-works.git/toontown/hood/HoodUtil.py
2024-01-16 11:20:27 -06:00

12 lines
444 B
Python

from toontown.toonbase import ToontownGlobals
def calcPropType(node):
propType = ToontownGlobals.AnimPropTypes.Unknown
fullString = str(node)
if 'hydrant' in fullString:
propType = ToontownGlobals.AnimPropTypes.Hydrant
elif 'trashcan' in fullString:
propType = ToontownGlobals.AnimPropTypes.Trashcan
elif 'mailbox' in fullString:
propType = ToontownGlobals.AnimPropTypes.Mailbox
return propType