Client LuaCsForBarotrauma
IWriteMessage.cs
1 using System;
2 
3 namespace Barotrauma.Networking
4 {
5  interface IWriteMessage
6  {
7  void WriteBoolean(bool val);
8  void WritePadBits();
9  void WriteByte(byte val);
10  void WriteInt16(Int16 val);
11  void WriteUInt16(UInt16 val);
12  void WriteInt32(Int32 val);
13  void WriteUInt32(UInt32 val);
14  void WriteInt64(Int64 val);
15  void WriteUInt64(UInt64 val);
16  void WriteSingle(Single val);
17  void WriteDouble(Double val);
18  void WriteColorR8G8B8(Microsoft.Xna.Framework.Color val);
19  void WriteColorR8G8B8A8(Microsoft.Xna.Framework.Color val);
20  void WriteVariableUInt32(UInt32 val);
21  void WriteString(string val);
22  void WriteIdentifier(Identifier val);
23  void WriteRangedInteger(int val, int min, int max);
24  void WriteRangedSingle(Single val, Single min, Single max, int bitCount);
25  void WriteBytes(byte[] val, int startIndex, int length);
26 
27  byte[] PrepareForSending(bool compressPastThreshold, out bool isCompressed, out int outLength);
28 
29  int BitPosition { get; set; }
30  int BytePosition { get; }
31  byte[] Buffer { get; }
32  int LengthBits { get; set; }
33  int LengthBytes { get; }
34  }
35 }
void WriteBytes(byte[] val, int startIndex, int length)
void WriteRangedInteger(int val, int min, int max)
void WriteRangedSingle(Single val, Single min, Single max, int bitCount)
void WriteColorR8G8B8A8(Microsoft.Xna.Framework.Color val)
void WriteIdentifier(Identifier val)
void WriteColorR8G8B8(Microsoft.Xna.Framework.Color val)
byte[] PrepareForSending(bool compressPastThreshold, out bool isCompressed, out int outLength)