public void CopyBooks(Archive archive) { books = new List<Book>(); foreach (Book b in archive.books) { books.Add(b); } }
public Player(TextureManager textureManager, int playerID) { position = GetPosition(playerID); archive = new Archive(textureManager, position + offset, 0.6f, 2, 5); this.playerID = playerID; publishMenu = new PublishMenu(textureManager, position + offset, 0.75f, playerID); activeTab = archive; background = textureManager.playerBackground; doneTexture = textureManager.doneTexture; budget = 0; }
public Archive(Archive archive) : base(archive) { books = new List<Book>(); foreach (Book b in archive.books) { books.Add(b); } rows = archive.rows; columns = archive.columns; numOfShelves = archive.numOfShelves; activeShelf = 0; }
public void CopyArchive(Archive archive) { this.archive.CopyBooks(archive); }
public BookManager(TextureManager textureManager) { archive = new Archive(textureManager, new Vector2(540, 280), 0.75f, 2, 3); bookTexture = textureManager.bookTexture; detailTexture = textureManager.detailTexture; }