Exemplo n.º 1
0
    def __init__(self, *args, **kwargs):
        super(Simulation,self).__init__(*args, **kwargs)

        self._name = self.getMember('name')
        self._data = self.getMember(DataObject.getTypeName())
        self._robjs = self.getMember(RenderObject.getTypeName())
        self.instanced = False
        self.script     = self.getMember(Scriptable.getTypeName())
Exemplo n.º 2
0
 def updateMembers(self):
     self.setMember('name', self._name)
     self.setMember(DataObject.getTypeName(), self._data)
     self.setMember(RenderObject.getTypeName(), self._robjs)
     self.setMember(Scriptable.getTypeName(), self.script)
Exemplo n.º 3
0
 def _initMembersDict(self):
     super(Simulation, self)._initMembersDict()
     self._members['name']   = [str, 'sim']
     self._members[DataObject.getTypeName()] = [DataObject, None]
     self._members[RenderObject.getTypeName()] = [RenderObject, []]
     self._members[Scriptable.getTypeName()] = [Scriptable, None]