예제 #1
0
 def proceed_boardcommon(self, data):
     newboardcommon = nwp.unpack(data[BOARDCOMMON])
     self.boardcommon = []
     for item in newboardcommon:
         pile = KingdomPile(item[1], item[2])
         pile.id = item[0]
         pile.calc_cost = item[3]
         self.boardcommon.append(pile)
     NewBoardCommonEvent(self.boardcommon).post(self.ev)
예제 #2
0
 def proceed_boardsetup(self, data):
     newboardsetup = nwp.unpack(data[BOARDSETUP])
     self.boardsetup = []
     for item in newboardsetup:
         pile = KingdomPile(item[1], item[2])
         pile.id = item[0]
         pile.calc_cost = item[3]
         self.boardsetup.append(pile)
     NewBoardSetupEvent(self.boardsetup).post(self.ev)