Documentation ¶
Index ¶
- type AuthModeOption
- type ClientState
- type ConnectionProtocol
- type ConnectionStateValue
- type CustomAuthenticationType
- type DeliveryMode
- type DeserializationFlags
- type DisconnectCause
- type EgMessageType
- type EncryptionMode
- type EventCaching
- type GpType
- type GpType18
- type JoinType
- type LobbyType
- type PeerStateValue
- type PhotonCodes
- type PhotonSocketError
- type PhotonSocketState
- type ReceiverGroup
- type SeekOrigin
- type SerializationProtocol
- type ServerConnection
- type StatusCode
- type Version
- type WrappedType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthModeOption ¶
type AuthModeOption int
const ( AuthModeOptionAuth AuthModeOption = iota AuthModeOptionAuthOnce AuthModeOptionAuthOnceWss )
func (AuthModeOption) String ¶
func (a AuthModeOption) String() string
type ClientState ¶
type ClientState int
const ( ClientStatePeerCreated ClientState = iota ClientStateAuthenticating ClientStateAuthenticated ClientStateJoiningLobby ClientStateJoinedLobby ClientStateDisconnectingFromMasterServer ClientStateConnectingToGameServer ClientStateConnectedToGameServer ClientStateJoining ClientStateJoined ClientStateLeaving ClientStateDisconnectingFromGameServer ClientStateConnectingToMasterServer ClientStateDisconnecting ClientStateDisconnected ClientStateConnectedToMasterServer ClientStateConnectingToNameServer ClientStateConnectedToNameServer ClientStateDisconnectingFromNameServer )
func (ClientState) String ¶
func (c ClientState) String() string
type ConnectionProtocol ¶
type ConnectionProtocol int
const ( ConnectionProtocolUdp ConnectionProtocol = iota ConnectionProtocolTcp ConnectionProtocolWebsocket ConnectionProtocol = 4 ConnectionProtocolWebsocketSecure ConnectionProtocol = 5 )
Only UDP is ever used in the client SDK. this might get used in Server.
func (ConnectionProtocol) String ¶
func (c ConnectionProtocol) String() string
type ConnectionStateValue ¶
type ConnectionStateValue byte
const ( ConnectionStateValueDisconnected ConnectionStateValue = iota ConnectionStateValueConnecting ConnectionStateValueConnected ConnectionStateValue = 3 ConnectionStateValueDisconnecting ConnectionStateValue = 4 ConnectionStateValueZombie ConnectionStateValue = 6 )
func (ConnectionStateValue) String ¶
func (s ConnectionStateValue) String() string
type CustomAuthenticationType ¶
type CustomAuthenticationType byte
const ( CustomAuthenticationTypeCustom CustomAuthenticationType = iota CustomAuthenticationTypeSteam CustomAuthenticationTypeFacebook CustomAuthenticationTypeOculus CustomAuthenticationTypePlayStation CustomAuthenticationTypeXbox CustomAuthenticationTypeViveport CustomAuthenticationType = 10 CustomAuthenticationTypeNintendoSwitch CustomAuthenticationType = 11 CustomAuthenticationTypeNone CustomAuthenticationType = 255 )
func (CustomAuthenticationType) String ¶
func (c CustomAuthenticationType) String() string
type DeliveryMode ¶
type DeliveryMode int
const ( DeliveryModeUnreliable DeliveryMode = iota DeliveryModeReliable DeliveryModeUnreliableUnsequenced DeliveryModeReliableUnsequenced )
func (DeliveryMode) String ¶
func (d DeliveryMode) String() string
type DeserializationFlags ¶
type DeserializationFlags int
const ( DeserializationFlagsNone DeserializationFlags = iota DeserializationFlagsAllowPooledByteArray DeserializationFlagsWrapIncomingStructs )
func (DeserializationFlags) String ¶
func (d DeserializationFlags) String() string
type DisconnectCause ¶
type DisconnectCause int
const ( DisconnectCauseNone DisconnectCause = iota DisconnectCauseExceptionOnConnect DisconnectCauseException DisconnectCauseServerTimeout DisconnectCauseClientTimeout DisconnectCauseDisconnectByServerLogic DisconnectCauseDisconnectByServerReasonUnknown DisconnectCauseInvalidAuthentication DisconnectCauseCustomAuthenticationFailed DisconnectCauseAuthenticationTicketExpired DisconnectCauseMaxCcuReached DisconnectCauseInvalidRegion DisconnectCauseOperationNotAllowedInCurrentState DisconnectCauseDisconnectByClientLogic )
func (DisconnectCause) String ¶
func (d DisconnectCause) String() string
type EgMessageType ¶
type EgMessageType byte
const ( EgMessageTypeInit EgMessageType = iota EgMessageTypeInitResponse EgMessageTypeOperation EgMessageTypeOperationResponse EgMessageTypeEvent EgMessageTypeDisconnectReason EgMessageTypeInternalOperationRequest EgMessageTypeInternalOperationResponse EgMessageTypeMessage EgMessageTypeRawMessage )
func (EgMessageType) String ¶
func (e EgMessageType) String() string
type EncryptionMode ¶
type EncryptionMode int
const ( EncryptionModePayloadEncryption EncryptionMode = 0 EncryptionModeDatagramEncryption EncryptionMode = 10 EncryptionModeDatagramEncryptionRandomSequence EncryptionMode = 11 EncryptionModeDatagramEncryptionGCMRandomSequence EncryptionMode = 12 )
func (EncryptionMode) String ¶
func (e EncryptionMode) String() string
type EventCaching ¶
type EventCaching byte
const ( EventCachingDoNotCache EventCaching = iota EventCachingMergeCache EventCachingReplaceCache EventCachingRemoveCache EventCachingAddToRoomCache EventCachingAddToRoomCacheGlobal EventCachingRemoveFromRoomCache EventCachingRemoveFromRoomCacheForActorsLeft EventCachingSliceIncreaseIndex EventCachingSliceSetIndex EventCachingSlicePurgeIndex EventCachingSlicePurgeUpToIndex )
func (EventCaching) String ¶
func (e EventCaching) String() string
type GpType ¶
type GpType byte
GpType is used for GpBinaryV16. We do not use Protocol 16, however the server might, so the constant is here.
const ( GpTypeUnknown GpType = iota GpTypeDictionary GpType = 68 GpTypeByte GpType = 98 GpTypeDouble GpType = 100 GpTypeEventData GpType = 101 GpTypeFloat GpType = 102 GpTypeHashtable GpType = 104 GpTypeInt GpType = 105 GpTypeShort GpType = 107 GpTypeLong GpType = 108 GpTypeBoolean GpType = 111 GpTypeOperationResponse GpType = 112 GpTypeOperationRequest GpType = 113 GpTypeString GpType = 115 GpTypeBytearray GpType = 120 GpTypeArray GpType = 121 GpTypeObjectArray GpType = 122 )
type GpType18 ¶
type GpType18 byte
const ( GpType18Unknown GpType18 = iota GpType18Boolean GpType18 = 2 GpType18Byte GpType18 = 3 GpType18Short GpType18 = 4 GpType18Float GpType18 = 5 GpType18Double GpType18 = 6 GpType18String GpType18 = 7 GpType18Null GpType18 = 8 GpType18CompressedInt GpType18 = 9 GpType18CompressedLong GpType18 = 10 GpType18Int1 GpType18 = 11 GpType18Int1_ GpType18 = 12 GpType18Int2 GpType18 = 13 GpType18Int2_ GpType18 = 14 GpType18L1 GpType18 = 15 GpType18L1_ GpType18 = 16 GpType18L2 GpType18 = 17 GpType18L2_ GpType18 = 18 GpType18Custom GpType18 = 19 GpType18Dictionary GpType18 = 20 GpType18Hashtable GpType18 = 21 GpType18ObjectArray GpType18 = 23 GpType18OperationRequest GpType18 = 24 GpType18OperationResponse GpType18 = 25 GpType18EventData GpType18 = 26 GpType18BooleanFalse GpType18 = 27 GpType18BooleanTrue GpType18 = 28 GpType18ShortZero GpType18 = 29 GpType18IntZero GpType18 = 30 GpType18LongZero GpType18 = 31 GpType18FloatZero GpType18 = 32 GpType18DoubleZero GpType18 = 33 GpType18ByteZero GpType18 = 34 GpType18Array GpType18 = 64 GpType18BooleanArray GpType18 = 66 GpType18Bytearray GpType18 = 67 GpType18ShortArray GpType18 = 68 GpType18FloatArray GpType18 = 69 GpType18DoubleArray GpType18 = 70 GpType18StringArray GpType18 = 71 GpType18CompressedIntArray GpType18 = 83 GpType18CompressedLongArray GpType18 = 74 GpType18DictionaryArray GpType18 = 84 GpType18HashtableArray GpType18 = 85 GpType18CustomTypeSlim GpType18 = 128 )
type PeerStateValue ¶
type PeerStateValue byte
const ( PeerStateDisconnected PeerStateValue = 0 PeerStateConnecting PeerStateValue = 1 PeerStateConnected PeerStateValue = 3 PeerStateDisconnecting PeerStateValue = 4 PeerStateInitializingApplication PeerStateValue = 10 )
func (PeerStateValue) String ¶
func (p PeerStateValue) String() string
type PhotonCodes ¶
type PhotonCodes byte
const ( PhotonCodesOk PhotonCodes = iota PhotonCodesClientKey PhotonCodesModeKey PhotonCodesServerKey PhotonCodes = 1 PhotonCodesInitEncryption PhotonCodes = 0 PhotonCodesPing PhotonCodes = 1 )
These codes seemingly have the same Code in the SDK, hence Golang won't allow a String Method for these.
type PhotonSocketError ¶
type PhotonSocketError int
const ( PhotonSocketErrorSuccess PhotonSocketError = iota PhotonSocketErrorSkipped PhotonSocketErrorNoData PhotonSocketErrorException PhotonSocketErrorBusy )
func (PhotonSocketError) String ¶
func (p PhotonSocketError) String() string
type PhotonSocketState ¶
type PhotonSocketState int
const ( PhotonSocketStateDisconnected PhotonSocketState = iota PhotonSocketStateConnecting PhotonSocketStateConnected PhotonSocketStateDisconnecting )
func (PhotonSocketState) String ¶
func (p PhotonSocketState) String() string
type ReceiverGroup ¶
type ReceiverGroup byte
const ( ReceiverGroupOthers ReceiverGroup = iota ReceiverGroupAll ReceiverGroupMasterClient )
func (ReceiverGroup) String ¶
func (r ReceiverGroup) String() string
type SeekOrigin ¶
type SeekOrigin int
const ( SeekOriginBegin SeekOrigin = iota SeekOriginCurrent SeekOriginEnd )
func (SeekOrigin) String ¶
func (s SeekOrigin) String() string
type SerializationProtocol ¶
type SerializationProtocol int
const ( GpBinaryV16 SerializationProtocol = iota GpBinaryV18 )
func (SerializationProtocol) String ¶
func (s SerializationProtocol) String() string
type ServerConnection ¶
type ServerConnection int
const ( ServerConnectionMasterServer ServerConnection = iota ServerConnectionGameServer ServerConnectionNameServer )
func (ServerConnection) String ¶
func (s ServerConnection) String() string
type StatusCode ¶
type StatusCode int
const ( StatusCodeSecurityExceptionOnConnect StatusCode = 1022 StatusCodeExceptionOnConnect StatusCode = 1023 StatusCodeConnect StatusCode = 1024 StatusCodeDisconnect StatusCode = 1025 StatusCodeException StatusCode = 1026 StatusCodeSendError StatusCode = 1030 StatusCodeExceptionOnReceive StatusCode = 1039 StatusCodeTimeoutDisconnect StatusCode = 1040 StatusCodeDisconnectByServerTimeout StatusCode = 1041 StatusCodeDisconnectByServerUserLimit StatusCode = 1042 StatusCodeDisconnectByServerLogic StatusCode = 1043 StatusCodeDisconnectByServerReasonUnknown StatusCode = 1044 StatusCodeEncryptionEstablished StatusCode = 1048 StatusCodeEncryptionFailedToEstablish StatusCode = 1049 StatusCodeServerAddressInvalid StatusCode = 1050 StatusCodeDnsExceptionOnConnect StatusCode = 1051 )
func (StatusCode) String ¶
func (s StatusCode) String() string
type WrappedType ¶
type WrappedType int
const ( WrappedTypeUnknown WrappedType = iota WrappedTypeBool WrappedTypeByte WrappedTypeInt16 WrappedTypeInt32 WrappedTypeInt64 WrappedTypeSingle WrappedTypeDouble )
func (WrappedType) String ¶
func (w WrappedType) String() string
Click to show internal directories.
Click to hide internal directories.