mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
prelim DistributedMint
This commit is contained in:
parent
75d5244ab7
commit
707c0f22ba
@ -38,6 +38,7 @@ class DistributedLevelAI(DistributedObjectAI.DistributedObjectAI,
|
||||
|
||||
self.initializeLevel(levelSpec)
|
||||
|
||||
# self.zoneIds comes from LevelMgrAI
|
||||
self.sendUpdate('setZoneIds', [self.zoneIds])
|
||||
self.sendUpdate('setStartTimestamp', [self.startTimestamp])
|
||||
# this is no longer used
|
||||
@ -57,13 +58,14 @@ class DistributedLevelAI(DistributedObjectAI.DistributedObjectAI,
|
||||
def getEntranceId(self):
|
||||
return self.entranceId
|
||||
|
||||
def delete(self):
|
||||
def delete(self, deAllocZone=True):
|
||||
self.notify.debug('delete')
|
||||
if __dev__:
|
||||
self.removeAutosaveTask()
|
||||
self.destroyLevel()
|
||||
self.ignoreAll()
|
||||
self.air.deallocateZone(self.zoneId)
|
||||
if deAllocZone:
|
||||
self.air.deallocateZone(self.zoneId)
|
||||
DistributedObjectAI.DistributedObjectAI.delete(self)
|
||||
|
||||
def initializeLevel(self, levelSpec):
|
||||
|
@ -10,7 +10,7 @@ import types
|
||||
|
||||
"""
|
||||
TO CREATE A NEW SPEC:
|
||||
import SpecUtil
|
||||
from direct.level import SpecUtil
|
||||
from toontown.coghq import FactoryEntityTypes
|
||||
SpecUtil.makeNewSpec('$TOONTOWN/src/coghq/FactoryMockupSpec.py', 'phase_9/models/cogHQ/SelbotLegFactory', FactoryEntityTypes)
|
||||
"""
|
||||
@ -27,13 +27,13 @@ def makeNewSpec(filename, modelPath, entTypeModule=EntityTypes):
|
||||
|
||||
"""
|
||||
FOR SAME LEVEL MODEL PATH:
|
||||
import SpecUtil
|
||||
from direct.level import SpecUtil
|
||||
from toontown.coghq import SellbotLegFactorySpec
|
||||
from toontown.coghq import FactoryEntityTypes
|
||||
SpecUtil.updateSpec(SellbotLegFactorySpec, FactoryEntityTypes)
|
||||
|
||||
FOR DIFFERENT LEVEL MODEL PATH:
|
||||
import SpecUtil
|
||||
from direct.level import SpecUtil
|
||||
from toontown.coghq import SellbotLegFactorySpec
|
||||
from toontown.coghq import FactoryEntityTypes
|
||||
SpecUtil.updateSpec(SellbotLegFactorySpec, FactoryEntityTypes, '/i/beta/toons/maya/work/CogHeadquarters/CogFactoriesInteriors/AllFactories/LegFactory/SelbotLegFactory_v##s#.mb')
|
||||
|
Loading…
x
Reference in New Issue
Block a user