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); }
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(); }
public Tip(TipConfig config) { throw new Exception(); }
protected override void ReadBody(ByteReader reader) { reader.ReadPad(4); this.TipConfig = reader.ReadTipConfig(); reader.ReadPad(8); }