public override void Read(System.IO.BinaryReader stream) { pingKey = stream.ReadInt16(); byte pingModeId = stream.ReadByte(); switch (pingModeId) { case 1: pingMode = PingMode.Request; break; case 2: pingMode = PingMode.Response; break; default: pingMode = PingMode.Unknown; break; } }
public static BeamCount GetBeamCount(PingMode pingMode) { CheckMinMax(pingMode, MinPingMode, MaxPingMode, nameof(pingMode)); return(configMap.Value[pingMode]); }
public Packet1Ping(long pingKey, PingMode pingMode) { this.pingKey = pingKey; }