Пример #1
0
    //返回所有物品
    List <FoodMaterial> IBackPackService.getAllItems()
    {
        List <FoodMaterial> foodMaterials = new List <FoodMaterial>();

        Dictionary <string, int> .KeyCollection keyCol = GameGlobal.backPack.Items.Keys;
        Debug.Log(keyCol.Count);
        foreach (string key in keyCol)
        {
            foodMaterials.Add(foodMaterialDao.selectFoodMaterialByID(int.Parse(key)));
        }
        return(foodMaterials);
    }
Пример #2
0
    //返回所有物品
    List <FoodMaterial> IBackPackService.getAllItems()
    {
        List <FoodMaterial> foodMaterials = new List <FoodMaterial>();

        Dictionary <int, int> .KeyCollection keyCol = GameGlobal.backPack.Items.Keys;
        Debug.Log(keyCol.Count);
        foreach (int key in keyCol)
        {
            foodMaterials.Add(foodMaterialDao.selectFoodMaterialByID(key));
            Debug.Log(foodMaterials[0].beforeImgPath);
        }
        return(foodMaterials);
    }