Server serialization functions require client

This commit is contained in:
juanjp600
2016-09-07 17:32:20 -03:00
parent a02931054a
commit bfd8bc6b35
18 changed files with 66 additions and 55 deletions

View File

@@ -58,8 +58,8 @@ namespace Barotrauma
bool isHorizontal;
private ushort netStateID;
public ushort NetStateID
private UInt32 netStateID;
public UInt32 NetStateID
{
get { return netStateID; }
}
@@ -689,7 +689,7 @@ namespace Barotrauma
return newBody;
}
public void ServerWrite(NetOutgoingMessage msg)
public void ServerWrite(NetOutgoingMessage msg, Client c)
{
for (int i = 0; i < sections.Length; i++)
{

View File

@@ -123,8 +123,8 @@ namespace Barotrauma
}
}
private ushort netStateID;
public ushort NetStateID
private UInt32 netStateID;
public UInt32 NetStateID
{
get
{
@@ -962,7 +962,7 @@ namespace Barotrauma
DockedTo.Clear();
}
public void ServerWrite(NetOutgoingMessage msg)
public void ServerWrite(NetOutgoingMessage msg, Client c)
{
msg.Write(subBody.Position.X);
msg.Write(subBody.Position.Y);