Add action gathering functionality: implement ActionGathered model and repository, update Pet model and services, and enhance GameItemsRepository with item retrieval methods.
This commit is contained in:
@@ -21,6 +21,18 @@ namespace PetCompanion.Repositories
|
||||
.Include(p => p.Resources)
|
||||
.Include(p => p.Inventory)
|
||||
.Include(p => p.EquippedItemsList)
|
||||
.Include(p => p.ActionGathered)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public IEnumerable<Pet> GetPetWithActions()
|
||||
{
|
||||
return context.Pets
|
||||
.Where(predicate => predicate.PetGatherAction != PetActionGather.IDLE)
|
||||
.Include(p => p.Stats)
|
||||
.Include(p => p.Resources)
|
||||
.Include(p => p.Inventory)
|
||||
.Include(p => p.EquippedItemsList)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
@@ -32,6 +44,7 @@ namespace PetCompanion.Repositories
|
||||
.Include(p => p.Resources)
|
||||
.Include(p => p.Inventory)
|
||||
.Include(p => p.EquippedItemsList)
|
||||
.Include(p => p.ActionGathered)
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user