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

View File

@@ -21,9 +21,7 @@ namespace Barotrauma.Networking
ItemFixed = 9,
UpdateProperty = 10,
WallDamage = 11,
WallDamage = 11
}
class NetworkEvent
@@ -123,7 +121,7 @@ namespace Barotrauma.Networking
events.Add(this);
}
public bool FillData(NetOutgoingMessage message)
public bool FillData(NetBuffer message)
{
message.Write((byte)eventType);