Make ItemCabinet use ItemSlots (#4771)

* pda slot names

* cabinets use item slots

* fix yaml

* fix tests
This commit is contained in:
Leon Friedrich
2021-10-06 08:55:45 +11:00
committed by GitHub
parent d2748d1e59
commit 6f50dd2f7b
14 changed files with 164 additions and 277 deletions

View File

@@ -31,7 +31,7 @@ namespace Content.IntegrationTests.Tests.PDA
components:
- type: ItemSlots
slots:
pda_id_slot:
pdaIdSlot:
whitelist:
components:
- IdCard
@@ -79,7 +79,7 @@ namespace Content.IntegrationTests.Tests.PDA
var itemSlots = dummyPda.GetComponent<SharedItemSlotsComponent>();
sEntityManager.EntitySysManager.GetEntitySystem<SharedItemSlotsSystem>()
.TryInsertContent(itemSlots, pdaIdCard, PDAComponent.IDSlotName);
.TryInsertContent(itemSlots, pdaIdCard, pdaComponent.IdSlot);
var pdaContainedId = pdaComponent.ContainedID;
// The PDA in the hand should be found first