mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Unique ID allocator holocausted
This commit is contained in:
parent
4911ad0607
commit
244fc5f057
1 changed files with 3 additions and 2 deletions
|
@ -22,7 +22,7 @@ class GlobalPartyManagerUD(DistributedObjectGlobalUD):
|
|||
PARTY_TIME_FORMAT = '%Y-%m-%d %H:%M:%S'
|
||||
startTime = datetime.strptime('2014-01-20 11:50:00', PARTY_TIME_FORMAT)
|
||||
endTime = datetime.strptime('2014-01-20 12:20:00', PARTY_TIME_FORMAT)
|
||||
self.partyAllocator = UniqueIdAllocator(0, 100000000)
|
||||
self.nextId = 0
|
||||
#self.host2Party[100000001] = {'hostId': 100000001, 'start': startTime, 'end': endTime, 'partyId': 1717986918400000, 'decorations': [[3,5,7,6]], 'activities': [[10,13,6,18],[7,8,7,0]],'inviteTheme':1,'isPrivate':0,'inviteeIds':[]}
|
||||
config = getConfigShowbase()
|
||||
self.wantInstantParties = config.GetBool('want-instant-parties', 0)
|
||||
|
@ -247,5 +247,6 @@ class GlobalPartyManagerUD(DistributedObjectGlobalUD):
|
|||
def allocIds(self, numIds):
|
||||
ids = []
|
||||
while len(ids) < numIds:
|
||||
ids.append(self.partyAllocator.allocate())
|
||||
ids.append(self.nextId)
|
||||
self.nextId += 1
|
||||
self.sendToAI('receiveId', ids)
|
Loading…
Reference in a new issue