Reorganized project to start work on dedicated server

This commit is contained in:
juanjp600
2017-06-11 03:48:08 -03:00
parent 9b0d7c1020
commit 5636d1cdf9
702 changed files with 453 additions and 247 deletions
@@ -0,0 +1,25 @@
using System;
using Lidgren.Network;
namespace Barotrauma.Networking
{
interface INetSerializable { }
/// <summary>
/// Interface for entities that the clients can send information of to the server
/// </summary>
interface IClientSerializable : INetSerializable
{
void ClientWrite(NetBuffer msg, object[] extraData = null);
void ServerRead(ClientNetObject type, NetBuffer msg, Client c);
}
/// <summary>
/// Interface for entities that the server can send information of to the clients
/// </summary>
interface IServerSerializable : INetSerializable
{
void ServerWrite(NetBuffer msg, Client c, object[] extraData = null);
void ClientRead(ServerNetObject type, NetBuffer msg, float sendingTime);
}
}