mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
added getCount()
This commit is contained in:
parent
8c0f73dfca
commit
cd833ba93b
@ -56,7 +56,11 @@ class CountedResource(object):
|
||||
cls.RESOURCE_COUNTER -= 1
|
||||
if cls.RESOURCE_COUNTER < 1:
|
||||
cls.release()
|
||||
|
||||
|
||||
@classmethod
|
||||
def getCount(cls):
|
||||
return cls.RESOURCE_COUNTER
|
||||
|
||||
@classmethod
|
||||
def acquire(cls):
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user