コード例 #1
0
 private void loadLibraryAssets(ContentManager content)
 {
     library = new CardImageStorage();
     library = deckConstructor.cardConstructor.tempStorage;
     library.loadCardSupplementalTextures(content);
     library.loadAllDictionaryTextures(content);
 }
コード例 #2
0
 public void loadCardImagesInContainer(CardImageStorage library)
 {
     foreach (Card card in cardsInContainer)
     {
         card.suppTextures.supplements[card.suppTextures.portrait].setTexture(library.cardTextureDictionary[card.cardProps.identifier]);
         card.setSupplementalTextures(library);
         card.setColorForRace();
     }
 }
コード例 #3
0
ファイル: Card.cs プロジェクト: ericwilliamvogel/CardGame
 public void setSupplementalTextures(CardImageStorage storage)
 {
     for (int i = 0; i < suppTextures.TOTAL; i++)
     {
         if (i != suppTextures.portrait)
         {
             suppTextures.supplements[i].setTexture(storage.suppTextures.supplements[i].getTexture());
         }
     }
     properties.width  = suppTextures.supplements[suppTextures.cardBack].getWidth();
     properties.height = suppTextures.supplements[suppTextures.cardBack].getHeight();
 }
コード例 #4
0
 public void passDown(CardImageStorage library, CardConstructor constructor)
 {
     cardConstructor = constructor;
     this.library    = library;
 }
コード例 #5
0
 public void loadCardImage(CardImageStorage library, Card card)
 {
     card.suppTextures.supplements[card.suppTextures.portrait].setTexture(library.cardTextureDictionary[card.cardProps.identifier]);
     card.setSupplementalTextures(library);
     card.setColorForRace();
 }
コード例 #6
0
 public CardConstructor()
 {
     tempStorage = new CardImageStorage();
 }