public static bool CheckInventory(Shop.ProfileTheme theme, Inventory inventory) { if (theme.GetHashCode() == 0) { return(true); } byte check = (byte)(inventory.GetType().GetProperty(theme.ToString(), BindingFlags.Instance | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public) .GetValue(inventory)); if (check == 1) { return(true); } return(false); }
public bool CheckInventory(Shop.ProfileTheme theme) { return(InventoryService.CheckInventory(theme, this)); }