toontown-just-works/toontown/hood/HoodUtil.py

13 lines
444 B
Python
Raw Normal View History

2024-07-07 18:08:39 -05:00
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