/******************************************************** * Enums.h * * * * XFX::Net enumerations definition file * * Copyright © XFX Team. All Rights Reserved * ********************************************************/ #ifndef _XFX_NET_ENUMS_ #define _XFX_NET_ENUMS_ namespace XFX { namespace Net { /// /// Defines the reason a session ended. /// struct NetworkSessionEndReason { enum type { ClientSignedOut, HostEndedSession, RemovedByHost, Disconnected }; }; /// /// Contains additional data about a NetworkSessionJoinException. /// struct NetworkSessionJoinError { enum type { SessionNotFound, SessionNotJoinable, SessionFull }; }; /// /// Defines the different states of a multiplayer session. /// struct NetworkSessionState { enum type { Lobby, Playing, Ended }; }; /// /// Defines the different types of a multiplayer session. /// struct NetworkSessionType { enum type { Local, SystemLink, PlayerMatch, Ranked }; }; /// /// Defines options for network packet transmission. /// struct SendDataOptions { enum type { InOrder = 2, None = 0, Reliable = 1, ReliableInOrder = 3 }; }; typedef NetworkSessionEndReason::type NetworkSessionEndReason_t; typedef NetworkSessionJoinError::type NetworkSessionJoinError_t; typedef NetworkSessionState::type NetworkSessionState_t; typedef NetworkSessionType::type NetworkSessionType_t; typedef SendDataOptions::type SendDataOptions_t; } } #endif //_XFX_NET_ENUMS_