private void loadLibraryAssets(ContentManager content) { library = new CardImageStorage(); library = deckConstructor.cardConstructor.tempStorage; library.loadCardSupplementalTextures(content); library.loadAllDictionaryTextures(content); }
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(); } }
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(); }
public void passDown(CardImageStorage library, CardConstructor constructor) { cardConstructor = constructor; this.library = library; }
public void loadCardImage(CardImageStorage library, Card card) { card.suppTextures.supplements[card.suppTextures.portrait].setTexture(library.cardTextureDictionary[card.cardProps.identifier]); card.setSupplementalTextures(library); card.setColorForRace(); }
public CardConstructor() { tempStorage = new CardImageStorage(); }