Exemple #1
0
 public static void WriteTipConfig(this PacketWriter writer, TipConfig tip)
 {
     writer.WriteSByte(tip.TipID);
     writer.WriteSByte(tip.ColorID);
     writer.WriteSByte(tip.DurationID);
     writer.WriteSByte(tip.Flags);
 }
Exemple #2
0
        public static TipConfig ReadTipConfig(this PacketReader reader)
        {
            var tip = new TipConfig();

            tip.TipID      = reader.ReadSByte();
            tip.ColorID    = reader.ReadSByte();
            tip.DurationID = reader.ReadSByte();
            tip.Flags      = reader.ReadSByte();
            return(tip);
        }
        public C2S_ClientReady(PacketReader reader, ChannelID channelID, NetID senderNetID)
        {
            this.SenderNetID = senderNetID;
            this.ChannelID   = channelID;

            reader.ReadPad(4);
            this.TipConfig = reader.ReadTipConfig();
            reader.ReadPad(8);

            this.ExtraBytes = reader.ReadLeft();
        }
Exemple #4
0
 public Tip(TipConfig config) { throw new Exception(); }
Exemple #5
0
 protected override void ReadBody(ByteReader reader)
 {
     reader.ReadPad(4);
     this.TipConfig = reader.ReadTipConfig();
     reader.ReadPad(8);
 }