コード例 #1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     device = this.initializeStorageDevice();
     CardProperties[] gameCards = Content.Load<CardProperties[]>(@"GameProperties\gameProperties");
     stock = new Stock();
     foreach (CardProperties prop in gameCards){
         stock.initializeCards(prop);
     }
     stock.shuffleStock();
     //gameProperties.Cards.Add(new CardProperties(CardTypeEnum.GREENDOOR, 10));
     //Console.Write(gameCards.Length);
     //saveProperties("test.xml",gameProperties);
     cardTexture = Content.Load<Texture2D>(@"Textures\Cards2");
     hand = new Hand();
 }