コード例 #1
0
 public OrderGamesImp(int p_OrderId, int p_GameId, int p_GameQuantity, int p_edition, GamesImp p_game)
 {
     OrderId      = p_OrderId;
     GameId       = p_GameId;
     GameQuantity = p_GameQuantity;
     Edition      = p_edition;
     Game         = p_game;
 }
コード例 #2
0
        public bool CheckStock(int number, GamesImp item, bool delux)
        {
            if (item.Name == "Isekai Quest")
            {
                if (IsekaiInStock < number)
                {
                    return(false);
                }
            }

            if (item.Name == "Shonen Adventure")
            {
                if (ShonenAdventureInStock < number)
                {
                    return(false);
                }
            }

            return(true);
        }
コード例 #3
0
 public void RemoveFromStock(int number, GamesImp item)
 {
     //Runs when order is formed, includes item and possible delux objects
     //Checks if delux is true, if so, remove from DeluxInStock as well
     //If anything being removed doesn't have any more stock available, throw error message
 }