FillNetworkData uses NetBuffer instead of OutgoingMessage

This commit is contained in:
Regalis
2015-11-04 20:21:34 +02:00
parent 9f9f0205e7
commit 5a21d64b3a
23 changed files with 36 additions and 39 deletions
@@ -58,7 +58,7 @@ namespace Barotrauma
//protected Structure lastStructurePicked;
public virtual void FillNetworkData(NetOutgoingMessage message) { }
public virtual void FillNetworkData(NetBuffer message) { }
public virtual void ReadNetworkData(NetIncomingMessage message) { }
}
@@ -508,7 +508,7 @@ namespace Barotrauma
spriteBatch.DrawString(GUI.Font, "cooldown: " + coolDownTimer, pos - Vector2.UnitY * 120.0f, Color.Red);
}
public override void FillNetworkData(NetOutgoingMessage message)
public override void FillNetworkData(NetBuffer message)
{
message.Write((byte)state);
+1 -1
View File
@@ -83,7 +83,7 @@ namespace Barotrauma
return result;
}
public override bool FillNetworkData(NetworkEventType type, NetOutgoingMessage message, object data)
public override bool FillNetworkData(NetworkEventType type, NetBuffer message, object data)
{
switch (type)
{
+1 -1
View File
@@ -1186,7 +1186,7 @@ namespace Barotrauma
}
}
public override bool FillNetworkData(NetworkEventType type, NetOutgoingMessage message, object data)
public override bool FillNetworkData(NetworkEventType type, NetBuffer message, object data)
{
switch (type)
{