Unstable 1.8.4.0
This commit is contained in:
@@ -24,9 +24,10 @@ namespace Barotrauma
|
||||
ItemStat = 9,
|
||||
DroppedStack = 10,
|
||||
SetHighlight = 11,
|
||||
SwapItem = 12,
|
||||
|
||||
MinValue = 0,
|
||||
MaxValue = 11
|
||||
MaxValue = 12
|
||||
}
|
||||
|
||||
public interface IEventData : NetEntityEvent.IData
|
||||
@@ -150,5 +151,18 @@ namespace Barotrauma
|
||||
Upgrade = upgrade;
|
||||
}
|
||||
}
|
||||
|
||||
private readonly struct SwapItemEventData : IEventData
|
||||
{
|
||||
public EventType EventType => EventType.SwapItem;
|
||||
public readonly ItemPrefab NewItem;
|
||||
public readonly ushort NewId;
|
||||
|
||||
public SwapItemEventData(ItemPrefab newItem, ushort newId)
|
||||
{
|
||||
NewItem = newItem;
|
||||
NewId = newId;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user