mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -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):
|
||||
self.pirateAvatars[slot] = avatarId
|
||||
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