Files
LuaCsForBarotraumaEP/Subsurface/Source/Networking/INetSerializable.cs
2016-09-07 17:32:20 -03:00

28 lines
714 B
C#

using System;
using Lidgren.Network;
namespace Barotrauma.Networking
{
/// <summary>
/// Interface for entities that the clients can send information of to the server
/// </summary>
interface IClientSerializable
{
UInt32 NetStateID { get; }
void ClientWrite(NetOutgoingMessage msg);
void ServerRead(NetIncomingMessage msg, Client c);
}
/// <summary>
/// Interface for entities that the server can send information of to the clients
/// </summary>
interface IServerSerializable
{
UInt32 NetStateID { get; }
void ServerWrite(NetOutgoingMessage msg, Client c);
void ClientRead(NetIncomingMessage msg);
}
}