mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 16:57:54 +00:00
35 lines
717 B
Python
35 lines
717 B
Python
|
from direct.distributed import DistributedObject
|
||
|
|
||
|
class DistributedTestObject(DistributedObject.DistributedObject):
|
||
|
|
||
|
def setRequiredField(self, r):
|
||
|
self.requiredField = r
|
||
|
|
||
|
def setB(self, B):
|
||
|
self.B = B
|
||
|
|
||
|
def setBA(self, BA):
|
||
|
self.BA = BA
|
||
|
|
||
|
def setBO(self, BO):
|
||
|
self.BO = BO
|
||
|
|
||
|
def setBR(self, BR):
|
||
|
self.BR = BR
|
||
|
|
||
|
def setBRA(self, BRA):
|
||
|
self.BRA = BRA
|
||
|
|
||
|
def setBRO(self, BRO):
|
||
|
self.BRO = BRO
|
||
|
|
||
|
def setBROA(self, BROA):
|
||
|
self.BROA = BROA
|
||
|
|
||
|
def gotNonReqThatWasntSet(self):
|
||
|
for field in ('B', 'BA', 'BO', 'BR', 'BRA', 'BRO', 'BROA'):
|
||
|
if hasattr(self, field):
|
||
|
return True
|
||
|
|
||
|
return False
|