Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaServer/ServerSource/Map/Submarine.cs
2023-01-31 18:08:26 +02:00

19 lines
559 B
C#

using System;
using Barotrauma.Networking;
namespace Barotrauma
{
partial class Submarine
{
public void ServerWritePosition(ReadWriteMessage tempBuffer, Client c)
{
subBody.Body.ServerWrite(tempBuffer);
}
public void ServerEventWrite(IWriteMessage msg, Client c, NetEntityEvent.IData extraData = null)
{
throw new Exception($"Error while writing a network event for the submarine \"{Info.Name} ({ID})\". Submarines are not even supposed to send events!");
}
}
}