/// <summary> /// Reads a <see cref="ServerIncomingMessageTypes"/> type from an incoming message /// </summary> /// <param name="incomingMessage">The message</param> /// <returns>A <see cref="ServerIncomingMessageTypes"/> type</returns> internal static ServerIncomingMessageTypes ReadServerIncomingMessageType(this IncomingMessage incomingMessage) { return((ServerIncomingMessageTypes)incomingMessage.ReadByte()); }
/// <summary> /// Reads a <see cref="EnterRoomResultCodes"/> type from an incoming message /// </summary> /// <param name="incomingMessage">The message</param> /// <returns>A <see cref="EnterRoomResultCodes"/> type</returns> internal static EnterRoomResultCodes ReadEnterRoomResultCode(this IncomingMessage incomingMessage) { return((EnterRoomResultCodes)incomingMessage.ReadByte()); }
/// <summary> /// Reads a <see cref="ClientIncomingMessageTypes"/> type from an incoming message /// </summary> /// <param name="incomingMessage">The message</param> /// <returns>A <see cref="ClientIncomingMessageTypes"/> type</returns> internal static ClientIncomingMessageTypes ReadClientIncomingMessageType(this IncomingMessage incomingMessage) { return((ClientIncomingMessageTypes)incomingMessage.ReadByte()); }