mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
addInterest
This commit is contained in:
parent
75393d035b
commit
1c6e830453
@ -105,7 +105,7 @@ class DistributedObjectAI(DirectObject.DirectObject):
|
|||||||
Returns true if the object has been deleted,
|
Returns true if the object has been deleted,
|
||||||
or if it is brand new and hasn't yet been generated.
|
or if it is brand new and hasn't yet been generated.
|
||||||
"""
|
"""
|
||||||
return (self.air == None)
|
return self.air == None
|
||||||
|
|
||||||
def isGenerated(self):
|
def isGenerated(self):
|
||||||
"""
|
"""
|
||||||
@ -135,6 +135,19 @@ class DistributedObjectAI(DirectObject.DirectObject):
|
|||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if wantOtpServer:
|
||||||
|
def addInterest(self, zoneId, note="", event=None):
|
||||||
|
self.air.addInterest(self.getDoId(), zoneId, note, event)
|
||||||
|
|
||||||
|
if 0: # this is untested:
|
||||||
|
def setLocation(self, parentId, zoneId):
|
||||||
|
# The store must run first so we know the old location
|
||||||
|
self.air.storeObjectLocation(self.doId, 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)
|
||||||
self.announceGenerate()
|
self.announceGenerate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user