Faction Test 100.10.0.0

This commit is contained in:
Markus Isberg
2022-12-07 17:46:02 +02:00
parent de250b4a64
commit e0c3754621
19 changed files with 147 additions and 62 deletions
@@ -953,6 +953,12 @@ namespace Barotrauma
slots[index].RemoveItem(item);
}
public bool IsInSlot(Item item, int index)
{
if (index < 0 || index >= slots.Length) { return false; }
return slots[index].Contains(item);
}
public void SharedRead(IReadMessage msg, out List<ushort>[] newItemIds)
{
byte slotCount = msg.ReadByte();