Beispiel #1
0
 def update(self,creator,owner):
     StateElem.update(self)
     if len(self.data)==0:
         self.data.append({})
     
     if 'creator' not in self.data[0]:
         self.data[0]['creator']         = typeComponent.typeComponent()
     self.data[0]['creator'].update(creator)
     if 'owner' not in self.data[0]:
         self.data[0]['owner']           = typeComponent.typeComponent()
     self.data[0]['owner'].update(owner)
Beispiel #2
0
    def update(self, creator, owner):
        StateElem.update(self)
        if len(self.data) == 0:
            self.data.append({})

        if 'creator' not in self.data[0]:
            self.data[0]['creator'] = typeComponent.typeComponent()
        self.data[0]['creator'].update(creator)
        if 'owner' not in self.data[0]:
            self.data[0]['owner'] = typeComponent.typeComponent()
        self.data[0]['owner'].update(owner)
Beispiel #3
0
    def update(self, creator, owner):
        StateElem.update(self)
        if len(self.data) == 0:
            self.data.append({})

        if "creator" not in self.data[0]:
            self.data[0]["creator"] = typeComponent.typeComponent()
        self.data[0]["creator"].update(creator)
        if "owner" not in self.data[0]:
            self.data[0]["owner"] = typeComponent.typeComponent()
        self.data[0]["owner"].update(owner)