Пример #1
0
 def __init__(self, scene, entityID):
     self.scene = scene
     self.entityID = entityID
     self.components = {}
     self.componentStates = {}
     self.state = const.cef.ENTITY_STATE_UNINITIALIZED
     self.entityLock = uthread.CriticalSection()
Пример #2
0
 def __init__(self):
     service.Service.__init__(self)
     self.idCounter = 0L
     self.activeParticleEffects = {}
     self.timedParticleEffects = []
     self.activeParticlesSemaphore = uthread.CriticalSection('CriticalSection for dynamic particle effects')
     self.updateTaskletLock = locks.Event('particleEffectClientUpdateTaskletLock')
 def __EnterCriticalSection(self, k, v=None):
     if (k, v) not in self.sr.crits:
         self.sr.crits[k, v] = uthread.CriticalSection((k, v))
     self.sr.crits[k, v].acquire()