游戏狂人
- 贡献度
- 105
- 金元
- 8463
- 积分
- 1286
- 精华
- 2
- 注册时间
- 2012-1-8
|
这是钓鱼店卖牛奶
public class FarmWorkState : IFarmState
private ShopItemDataModel[] GetFishingTackleShopItemDatas()
{
ShopMasterModel[] allFishingTackleShopDatas = SingletonMonoBehaviour<MasterManager>.Instance.ShopMaster.GetAllFishingTackleShopDatas();
List<ShopItemDataModel> list = new List<ShopItemDataModel>();
foreach (ShopMasterModel shopMasterModel in allFishingTackleShopDatas)
{
ItemModel itemModel = new ItemModel(shopMasterModel.ItemId);
if (!itemModel.IsTool || !SingletonMonoBehaviour<UserManager>.Instance.User.IsPossessItem(itemModel.Id))
{
list.Add(new ShopItemDataModel(shopMasterModel.Id, shopMasterModel.ItemId, itemModel.Name, itemModel.Description, shopMasterModel.Price, itemModel.Master.AtlasId, itemModel.Id, true, itemModel.IsTool, itemModel.IsTool, true));
}
}
ItemModel itemModel2 = new ItemModel(3200101);
if (!itemModel2.IsTool || !SingletonMonoBehaviour<UserManager>.Instance.User.IsPossessItem(itemModel2.Id))
{
list.Add(new ShopItemDataModel(3, 3200101, itemModel2.Name, itemModel2.Description, 0, itemModel2.Master.AtlasId, itemModel2.Id, true, itemModel2.IsTool, itemModel2.IsTool, true));
}
return list.ToArray();
}
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|