mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
moved getPlayerAvatars to AIRepository
This commit is contained in:
parent
2cf8df05ce
commit
7e1a840167
@ -1,9 +1,6 @@
|
|||||||
#hack:
|
#hack:
|
||||||
BAD_DO_ID = BAD_ZONE_ID = -1
|
BAD_DO_ID = BAD_ZONE_ID = -1
|
||||||
|
|
||||||
if __debug__ and game.process != 'client':
|
|
||||||
from otp.avatar.DistributedPlayerAI import DistributedPlayerAI
|
|
||||||
|
|
||||||
class DoCollectionManager:
|
class DoCollectionManager:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# Dict of {DistributedObject ids : DistributedObjects}
|
# Dict of {DistributedObject ids : DistributedObjects}
|
||||||
@ -79,11 +76,6 @@ class DoCollectionManager:
|
|||||||
a.append(obj)
|
a.append(obj)
|
||||||
r = a
|
r = a
|
||||||
return r
|
return r
|
||||||
|
|
||||||
if __debug__ and game.process != 'client':
|
|
||||||
def getPlayerAvatars(self):
|
|
||||||
return [i for i in simbase.air.doId2do.values()
|
|
||||||
if isinstance(i, DistributedPlayerAI)]
|
|
||||||
|
|
||||||
def countObjects(self, classType):
|
def countObjects(self, classType):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user