toontown-just-works/toontown/toon/ToonDetail.py
2024-07-07 18:08:39 -05:00

14 lines
453 B
Python

from direct.directnotify.DirectNotifyGlobal import directNotify
from otp.avatar import AvatarDetail
from toontown.toon import DistributedToon
class ToonDetail(AvatarDetail.AvatarDetail):
notify = directNotify.newCategory('ToonDetail')
def getDClass(self):
return 'DistributedToon'
def createHolder(self):
toon = DistributedToon.DistributedToon(base.cr, bFake=True)
toon.forceAllowDelayDelete()
return toon