21 lines
546 B
C#
21 lines
546 B
C#
using Barotrauma.Networking;
|
|
|
|
namespace Barotrauma.Items.Components
|
|
{
|
|
partial class GeneticMaterial : ItemComponent
|
|
{
|
|
public void ServerEventWrite(IWriteMessage msg, Client c, NetEntityEvent.IData extraData = null)
|
|
{
|
|
msg.WriteBoolean(tainted);
|
|
if (tainted)
|
|
{
|
|
msg.WriteUInt32(selectedTaintedEffect?.UintIdentifier ?? 0);
|
|
}
|
|
else
|
|
{
|
|
msg.WriteUInt32(selectedEffect?.UintIdentifier ?? 0);
|
|
}
|
|
}
|
|
}
|
|
}
|