Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaClient/Source/Items/Components/LevelResource.cs
2019-03-18 20:39:27 +02:00

18 lines
456 B
C#

using Barotrauma.Networking;
using Lidgren.Network;
namespace Barotrauma.Items.Components
{
partial class LevelResource : ItemComponent, IServerSerializable
{
public void ClientRead(ServerNetObject type, NetBuffer msg, float sendingTime)
{
DeattachTimer = msg.ReadSingle();
if (deattachTimer >= DeattachDuration)
{
holdable.DeattachFromWall();
}
}
}
}