From 22ada23d14bab7ba707535e0966a73863d8989bb Mon Sep 17 00:00:00 2001 From: Mike Goslin Date: Thu, 4 May 2006 00:21:28 +0000 Subject: [PATCH] Support for loading screen --- direct/src/distributed/DoInterestManager.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/direct/src/distributed/DoInterestManager.py b/direct/src/distributed/DoInterestManager.py index b3dc61f744..7b2fd7ec5c 100755 --- a/direct/src/distributed/DoInterestManager.py +++ b/direct/src/distributed/DoInterestManager.py @@ -95,6 +95,17 @@ class DoInterestManager(DirectObject.DirectObject): assert self.printInterestsIfDebug() return handle + def countOpenInterests(self): + openInterestsCount = 0 + for interest in DoInterestManager._interests.values(): + # I'm only getting NO_SCOPE interests, so for now I'll key off + # of events + #if interest.scope != NO_SCOPE: + # openInterestsCount += 1 + #if len(interest.events) != 0: + openInterestsCount += 1 + return openInterestsCount + def removeInterest(self, handle, event=None): """ Stop looking in a (set of) zone(s)