mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
a5dcfae1ce
commit
6656cd6351
@ -342,6 +342,8 @@ class DistributedObject(PandaObject):
|
|||||||
self.cr.addInterest(self.getDoId(), zoneId, note, event)
|
self.cr.addInterest(self.getDoId(), zoneId, note, event)
|
||||||
|
|
||||||
def setLocation(self, parentId, zoneId):
|
def setLocation(self, parentId, zoneId):
|
||||||
|
#print "%s setLocation %s, %s" % (self.doId, parentId, zoneId)
|
||||||
|
|
||||||
# The store must run first so we know the old location
|
# The store must run first so we know the old location
|
||||||
#self.cr.storeObjectLocation(self.doId, parentId, zoneId)
|
#self.cr.storeObjectLocation(self.doId, parentId, zoneId)
|
||||||
self.__location = (parentId, zoneId)
|
self.__location = (parentId, zoneId)
|
||||||
|
@ -142,7 +142,10 @@ class DistributedObjectAI(DirectObject.DirectObject):
|
|||||||
def setLocation(self, parentId, zoneId):
|
def setLocation(self, parentId, zoneId):
|
||||||
# The store must run first so we know the old location
|
# The store must run first so we know the old location
|
||||||
self.air.sendSetLocation(self, parentId, zoneId)
|
self.air.sendSetLocation(self, parentId, zoneId)
|
||||||
|
self.__location = (parentId, zoneId)
|
||||||
|
|
||||||
|
def getLocation(self):
|
||||||
|
return self.__location
|
||||||
|
|
||||||
if 0: # this is untested:
|
if 0: # this is untested:
|
||||||
def setLocation(self, parentId, zoneId):
|
def setLocation(self, parentId, zoneId):
|
||||||
@ -150,8 +153,6 @@ class DistributedObjectAI(DirectObject.DirectObject):
|
|||||||
self.air.storeObjectLocation(self.doId, parentId, zoneId)
|
self.air.storeObjectLocation(self.doId, parentId, zoneId)
|
||||||
self.__location = (parentId, zoneId)
|
self.__location = (parentId, zoneId)
|
||||||
|
|
||||||
def getLocation(self):
|
|
||||||
return self.__location
|
|
||||||
|
|
||||||
def updateRequiredFields(self, dclass, di):
|
def updateRequiredFields(self, dclass, di):
|
||||||
dclass.receiveUpdateBroadcastRequired(self, di)
|
dclass.receiveUpdateBroadcastRequired(self, di)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user