Panda3D
|
Classes | |
class | DistributedObjectUD |
Functions | |
def | addInterest (self, zoneId, note="", event=None) |
def | announceGenerate (self) |
def | b_setLocation (self, parentId, zoneId) |
def | beginBarrier (self, name, avIds, timeout, callback) |
def | d_setLocation (self, parentId, zoneId) |
def | execCommand (self, string, mwMgrId, avId, zoneId) |
def | generate (self) |
def | generateInit (self, repository=None) |
def | generateOtpObject (self, parentId, zoneId, optionalFields=[], doId=None) |
def | generateTargetChannel (self, repository) |
def | generateWithRequired (self, zoneId, optionalFields=[]) |
def | generateWithRequiredAndId (self, doId, parentId, zoneId, optionalFields=[]) |
def | GetAccountConnectionChannel (self, doId) |
def | GetAccountIDFromChannelCode (self, channel) |
def | GetAvatarIDFromChannelCode (self, channel) |
def | getCollTrav (self, *args, **kArgs) |
def | getDoId (self) |
def | getLocation (self) |
def | getLogicalZoneChangeEvent (self) |
def | getNonCollidableParent (self) |
def | getParentMgr (self) |
def | GetPuppetConnectionChannel (self, doId) |
def | getRender (self) |
def | getZoneChangeEvent (self) |
def | handleLogicalZoneChange (self, newZoneId, oldZoneId) |
def | ignoreBarrier (self, context) |
def | initFromServerResponse (self, valDict) |
def | isDeleted (self) |
def | isGenerated (self) |
def | isGridParent (self) |
def | postGenerateMessage (self) |
def | preAllocateDoId (self) |
def | requestDelete (self) |
def | sendGenerateWithRequired (self, repository, parentId, zoneId, optionalFields=[]) |
def | sendSetZone (self, zoneId) |
def | sendUpdate (self, fieldName, args=[]) |
def | sendUpdateToAccountId (self, accountId, fieldName, args) |
def | sendUpdateToAvatarId (self, avId, fieldName, args) |
def | sendUpdateToChannel (self, channelId, fieldName, args) |
def | setBarrierReady (self, context) |
def | setLocation (self, parentId, zoneId) |
def | taskName (self, taskString) |
def | uniqueName (self, idString) |
def | updateAllRequiredFields (self, dclass, di) |
def | updateAllRequiredOtherFields (self, dclass, di) |
def | updateRequiredFields (self, dclass, di) |
def | updateRequiredOtherFields (self, dclass, di) |
def | validate (self, avId, bool, msg) |
Variables | |
air | |
doId | |
parentId | |
if not hasattr(self, "doNotDeallocateChannel"): if self.air: self.air.deallocateChannel(self.doId) self.air = None More... | |
zoneId | |
DistributedObjectUD module: contains the DistributedObjectUD class
def direct.distributed.DistributedObjectUD.addInterest | ( | self, | |
zoneId, | |||
note = "" , |
|||
event = None |
|||
) |
def direct.distributed.DistributedObjectUD.announceGenerate | ( | self | ) |
Called after the object has been generated and all of its required fields filled in. Overwrite when needed.
def direct.distributed.DistributedObjectUD.b_setLocation | ( | self, | |
parentId, | |||
zoneId | |||
) |
def direct.distributed.DistributedObjectUD.beginBarrier | ( | self, | |
name, | |||
avIds, | |||
timeout, | |||
callback | |||
) |
def direct.distributed.DistributedObjectUD.d_setLocation | ( | self, | |
parentId, | |||
zoneId | |||
) |
def direct.distributed.DistributedObjectUD.execCommand | ( | self, | |
string, | |||
mwMgrId, | |||
avId, | |||
zoneId | |||
) |
def direct.distributed.DistributedObjectUD.generate | ( | self | ) |
Inheritors should put functions that require self.zoneId or other networked info in this function.
def direct.distributed.DistributedObjectUD.generateInit | ( | self, | |
repository = None |
|||
) |
First generate (not from cache).
def direct.distributed.DistributedObjectUD.generateOtpObject | ( | self, | |
parentId, | |||
zoneId, | |||
optionalFields = [] , |
|||
doId = None |
|||
) |
def direct.distributed.DistributedObjectUD.generateTargetChannel | ( | self, | |
repository | |||
) |
Who to send this to for generate messages
def direct.distributed.DistributedObjectUD.generateWithRequired | ( | self, | |
zoneId, | |||
optionalFields = [] |
|||
) |
def direct.distributed.DistributedObjectUD.generateWithRequiredAndId | ( | self, | |
doId, | |||
parentId, | |||
zoneId, | |||
optionalFields = [] |
|||
) |
def direct.distributed.DistributedObjectUD.GetAccountConnectionChannel | ( | self, | |
doId | |||
) |
def direct.distributed.DistributedObjectUD.GetAccountIDFromChannelCode | ( | self, | |
channel | |||
) |
def direct.distributed.DistributedObjectUD.GetAvatarIDFromChannelCode | ( | self, | |
channel | |||
) |
def direct.distributed.DistributedObjectUD.getCollTrav | ( | self, | |
* | args, | ||
** | kArgs | ||
) |
def direct.distributed.DistributedObjectUD.getDoId | ( | self | ) |
Return the distributed object id
def direct.distributed.DistributedObjectUD.getLocation | ( | self | ) |
def direct.distributed.DistributedObjectUD.getLogicalZoneChangeEvent | ( | self | ) |
def direct.distributed.DistributedObjectUD.getNonCollidableParent | ( | self | ) |
def direct.distributed.DistributedObjectUD.getParentMgr | ( | self | ) |
def direct.distributed.DistributedObjectUD.GetPuppetConnectionChannel | ( | self, | |
doId | |||
) |
def direct.distributed.DistributedObjectUD.getRender | ( | self | ) |
def direct.distributed.DistributedObjectUD.getZoneChangeEvent | ( | self | ) |
def direct.distributed.DistributedObjectUD.handleLogicalZoneChange | ( | self, | |
newZoneId, | |||
oldZoneId | |||
) |
this function gets called as if we never go through the quiet zone. Note that it is called once you reach the newZone, and not at the time that you leave the oldZone.
def direct.distributed.DistributedObjectUD.ignoreBarrier | ( | self, | |
context | |||
) |
def direct.distributed.DistributedObjectUD.initFromServerResponse | ( | self, | |
valDict | |||
) |
def direct.distributed.DistributedObjectUD.isDeleted | ( | self | ) |
Returns true if the object has been deleted, or if it is brand new and hasnt yet been generated.
def direct.distributed.DistributedObjectUD.isGenerated | ( | self | ) |
Returns true if the object has been generated
def direct.distributed.DistributedObjectUD.isGridParent | ( | self | ) |
def direct.distributed.DistributedObjectUD.postGenerateMessage | ( | self | ) |
def direct.distributed.DistributedObjectUD.preAllocateDoId | ( | self | ) |
objects that need to have a doId before they are generated can call this to pre-allocate a doId for the object
def direct.distributed.DistributedObjectUD.requestDelete | ( | self | ) |
def direct.distributed.DistributedObjectUD.sendGenerateWithRequired | ( | self, | |
repository, | |||
parentId, | |||
zoneId, | |||
optionalFields = [] |
|||
) |
def direct.distributed.DistributedObjectUD.sendSetZone | ( | self, | |
zoneId | |||
) |
def direct.distributed.DistributedObjectUD.sendUpdate | ( | self, | |
fieldName, | |||
args = [] |
|||
) |
def direct.distributed.DistributedObjectUD.sendUpdateToAccountId | ( | self, | |
accountId, | |||
fieldName, | |||
args | |||
) |
def direct.distributed.DistributedObjectUD.sendUpdateToAvatarId | ( | self, | |
avId, | |||
fieldName, | |||
args | |||
) |
def direct.distributed.DistributedObjectUD.sendUpdateToChannel | ( | self, | |
channelId, | |||
fieldName, | |||
args | |||
) |
def direct.distributed.DistributedObjectUD.setBarrierReady | ( | self, | |
context | |||
) |
def direct.distributed.DistributedObjectUD.setLocation | ( | self, | |
parentId, | |||
zoneId | |||
) |
def direct.distributed.DistributedObjectUD.taskName | ( | self, | |
taskString | |||
) |
def direct.distributed.DistributedObjectUD.uniqueName | ( | self, | |
idString | |||
) |
def direct.distributed.DistributedObjectUD.updateAllRequiredFields | ( | self, | |
dclass, | |||
di | |||
) |
def direct.distributed.DistributedObjectUD.updateAllRequiredOtherFields | ( | self, | |
dclass, | |||
di | |||
) |
def direct.distributed.DistributedObjectUD.updateRequiredFields | ( | self, | |
dclass, | |||
di | |||
) |
def direct.distributed.DistributedObjectUD.updateRequiredOtherFields | ( | self, | |
dclass, | |||
di | |||
) |
def direct.distributed.DistributedObjectUD.validate | ( | self, | |
avId, | |||
bool, | |||
msg | |||
) |
air |
doId |
parentId |
if not hasattr(self, "doNotDeallocateChannel"): if self.air: self.air.deallocateChannel(self.doId) self.air = None
zoneId |