mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 20:22:33 -06:00
36 lines
905 B
Python
36 lines
905 B
Python
|
from direct.directnotify.DirectNotifyGlobal import directNotify
|
||
|
from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
||
|
|
||
|
|
||
|
class DistributedDistrictAI(DistributedObjectAI):
|
||
|
notify = directNotify.newCategory('DistributedDistrictAI')
|
||
|
|
||
|
name = 'District'
|
||
|
available = 0
|
||
|
|
||
|
def setName(self, name):
|
||
|
self.name = name
|
||
|
|
||
|
def d_setName(self, name):
|
||
|
self.sendUpdate('setName', [name])
|
||
|
|
||
|
def b_setName(self, name):
|
||
|
self.setName(name)
|
||
|
self.d_setName(name)
|
||
|
|
||
|
def getName(self):
|
||
|
return self.name
|
||
|
|
||
|
def setAvailable(self, available):
|
||
|
self.available = available
|
||
|
|
||
|
def d_setAvailable(self, available):
|
||
|
self.sendUpdate('setAvailable', [available])
|
||
|
|
||
|
def b_setAvailable(self, available):
|
||
|
self.setAvailable(available)
|
||
|
self.d_setAvailable(available)
|
||
|
|
||
|
def getAvailable(self):
|
||
|
return self.available
|