mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
added three methods
This commit is contained in:
parent
c6880c0ff8
commit
70a94646f7
@ -12,3 +12,15 @@ class AccountAI(DistributedObjectAI.DistributedObjectAI):
|
|||||||
def setPirate(self, slot, avatarId):
|
def setPirate(self, slot, avatarId):
|
||||||
self.pirateAvatars[slot] = avatarId
|
self.pirateAvatars[slot] = avatarId
|
||||||
self.sendUpdate('pirateAvatars', self.pirateAvatars)
|
self.sendUpdate('pirateAvatars', self.pirateAvatars)
|
||||||
|
|
||||||
|
def getPirate(self, slot):
|
||||||
|
return self.pirateAvatars[slot]
|
||||||
|
|
||||||
|
def getSlotLimit(self):
|
||||||
|
return 6
|
||||||
|
|
||||||
|
def may(self, perm):
|
||||||
|
"""
|
||||||
|
Ask whether the account has permission to <string>.
|
||||||
|
"""
|
||||||
|
return 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user