Zepheus.FiestaLib.Networking.Packet.WriteBool C# (CSharp) Method

WriteBool() public method

public WriteBool ( bool pValue ) : void
pValue bool
return void
        public void WriteBool(bool pValue)
        {
            this.writer.Write(pValue);
        }

Usage Example

Ejemplo n.º 1
0
 public static void SendQuickbarState(WorldClient client)
 {
     using (var packet = new Packet(SH28Type.LoadQuickBarState))
     {
         byte[] data = client.Character.Character.QuickBarState;
         bool hasData = data != null;
         packet.WriteBool(hasData);
         packet.WriteBytes(hasData ? data : new byte[] { 0 });
         client.SendPacket(packet);
     }
 }
All Usage Examples Of Zepheus.FiestaLib.Networking.Packet::WriteBool