Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
This class holds a set of online interfaces that game code uses to talk with the platform layer's services. The set of services are implemented as interface pointers so that we can mix & match services at run time. This also allows licensees the ability to use part of our base services and provide custom implmentations of others.
Core.Object | +-- Engine.OnlineSubsystem
OnlineSubsystemCommonImpl
Constants Summary |
---|
Inherited Contants from Core.Object |
---|
AspectRatio16x9, AspectRatio4x3, AspectRatio5x4, DegToRad, DegToUnrRot, INDEX_NONE, InvAspectRatio16x9, InvAspectRatio4x3, InvAspectRatio5x4, MaxInt, Pi, RadToDeg, RadToUnrRot, UnrRotToDeg, UnrRotToRad |
Inherited Variables from Core.Object |
---|
Class, HashNext, HashOuterNext, Linker, LinkerIndex, Name, NetIndex, ObjectArchetype, ObjectFlags, ObjectInternalInteger, Outer, StateFrame, VfTableObject |
Enumerations Summary | ||
---|---|---|
EFeaturePrivilegeLevel FPL_Disabled, FPL_EnabledFriendsOnly, FPL_Enabled | ||
ELanBeaconState LANB_NotUsingLanBeacon, LANB_Hosting, LANB_Searching | ||
ELoginStatus LS_NotLoggedIn, LS_UsingLocalProfile, LS_LoggedIn | ||
ENATType NAT_Unknown, NAT_Open, NAT_Moderate, NAT_Strict | ||
ENetworkNotificationPosition NNP_TopLeft, NNP_TopCenter, NNP_TopRight, NNP_CenterLeft, NNP_Center, NNP_CenterRight, NNP_BottomLeft, NNP_BottomCenter, NNP_BottomRight | ||
EOnlineAccountCreateStatus OACS_CreateSuccessful, OACS_UnknownError, OACS_InvalidUserName, OACS_InvalidPassword, OACS_InvalidUniqueUserName, OACS_UniqueUserNameInUse, OACS_ServiceUnavailable | ||
EOnlineContentType OCT_Downloaded, OCT_SaveGame | ||
EOnlineEnumerationReadState OERS_NotStarted, OERS_InProgress, OERS_Done, OERS_Failed | ||
EOnlineFriendState OFS_Offline, OFS_Online, OFS_Away, OFS_Busy | ||
EOnlineGameState OGS_NoSession, OGS_Pending, OGS_Starting, OGS_InProgress, OGS_Ending, OGS_Ended | ||
EOnlineNewsType ONT_Unknown, ONT_GameNews, ONT_ContentAnnouncements, ONT_Misc | ||
EOnlineServerConnectionStatus OSCS_NotConnected, OSCS_Connected, OSCS_ConnectionDropped, OSCS_NoNetworkConnection, OSCS_ServiceUnavailable, OSCS_UpdateRequired, OSCS_ServersTooBusy, OSCS_DuplicateLoginDetected, OSCS_InvalidUser |
Inherited Enumerations from Core.Object |
---|
AlphaBlendType, EAspectRatioAxisConstraint, EAutomatedRunResult, EAxis, EDebugBreakType, EInputEvent, EInterpCurveMode, EInterpMethodType, ETickingGroup |
Structures Summary | ||
---|---|---|
AchievementDetails Id, AchievementName, Description, HowTo, Image, GamerPoints, bIsSecret, bWasAchievedOnline, bWasAchievedOffline | ||
CommunityContentFile ContentId, FileId, ContentType, FileSize, Owner, DownloadCount, AverageRating, RatingCount, LastRatingGiven, LocalFilePath | ||
CommunityContentMetadata ContentType, MetadataItems | ||
FriendsQuery UniqueId, bIsFriend | ||
LocalTalker bHasVoice, bHasNetworkedVoice, bIsRecognizingSpeech, bWasTalking, bIsTalking, bIsRegistered | ||
NamedInterface InterfaceName, InterfaceObject | ||
NamedInterfaceDef InterfaceName, InterfaceClassName | ||
NamedSession SessionName, SessionInfo, GameSettings, Registrants, ArbitrationRegistrants | ||
OnlineArbitrationRegistrant MachineId, Trustworthiness | ||
OnlineContent ContentType, UserIndex, DeviceId, FriendlyName, Filename, ContentPath, ContentPackages, ContentFiles | ||
OnlineFriend UniqueId, SessionId, NickName, PresenceInfo, FriendState, bIsOnline, bIsPlaying, bIsPlayingThisGame, bIsJoinable, bHasVoiceSupport, bHaveInvited, bHasInvitedYou | ||
OnlineFriendMessage SendingPlayerId, SendingPlayerNick, bIsFriendInvite, bIsGameInvite, bWasAccepted, bWasDenied, Message | ||
OnlinePartyMember UniqueId, Nickname, LocalUserNum, NatType, TitleId, bIsLocal, bIsInPartyVoice, bIsTalking, bIsInGameSession, bIsPlayingThisGame, SessionId, Data1, Data2, Data3, Data4 | ||
OnlinePlayerScore PlayerId, TeamId, Score | ||
OnlineRegistrant PlayerNetId | ||
RemoteTalker TalkerId, LastNotificationTime, bWasTalking, bIsTalking, bIsRegistered | ||
SpeechRecognizedWord WordId, WordText, Confidence | ||
TitleFile Filename, AsyncState, Data | ||
UniqueNetId Uid |
Functions Summary | ||
---|---|---|
![]() | DumpGameSettings (const OnlineGameSettings GameSettings)) | |
![]() | DumpNetIds (const out array<UniqueNetId> Players, string DebugLabel)) | |
![]() | DumpSessionState ())) | |
![]() | DumpVoiceRegistration () | |
![]() | Exit () | |
![]() | int | GetBuildUniqueId () |
![]() | Object | GetNamedInterface (name InterfaceName)) |
![]() | int | GetNumSupportedLogins () |
![]() | bool | Init () |
![]() | bool | PostInit ())) |
![]() | bool | SetAccountInterface (Object NewInterface)) |
![]() | bool | SetContentInterface (Object NewInterface)) |
![]() | SetDebugSpewLevel (int DebugSpewLevel) | |
![]() | bool | SetGameInterface (Object NewInterface)) |
![]() | SetNamedInterface (name InterfaceName, bject NewInterface)) | |
![]() | bool | SetNewsInterface (Object NewInterface)) |
![]() | bool | SetPartyChatInterface (Object NewInterface)) |
![]() | bool | SetPlayerInterface (Object NewInterface)) |
![]() | bool | SetPlayerInterfaceEx (Object NewInterface)) |
![]() | bool | SetStatsInterface (Object NewInterface)) |
![]() | bool | SetSystemInterface (Object NewInterface)) |
![]() | bool | SetTitleFileInterface (Object NewInterface)) |
![]() | bool | SetVoiceInterface (Object NewInterface)) |
![]() | bool | StringToUniqueNetId (string UniqueNetIdString, ut UniqueNetId out_UniqueId) |
![]() | string | UniqueNetIdToString (const out UniqueNetId IdToConvert) |
Variables Detail |
---|
The interface to use for creating and/or enumerating account information
Used to introduce latency when communicating with the online layer for testing purposes
Used to specify a build override value
Whether to use the override or not
The interface to use for online content
The interface to use for creating, searching for, or destroying online games
The class to create our patcher instance from
The list of named interfaces to automatically create and store
Holds the set of registered named interfaces
The interface to use for reading game specific news announcements
The interface to use for accessing online party chat methods
The object responsible for patching downloaded INI/loc files
The interface for accessing online player methods
The interface for accessing online player extension methods
The list of sessions currently managed by the online subsystem
The interface to use for stats read/write operations
The interface for accessing system wide network functions
The interface to use for downloading files from the network platform
The interface to use for voice communication
Enumerations Detail |
---|
This enum indicates access to major features in the game (parent controls
Indicates the state the LAN beacon is in
The different login statuses for a player
The various NAT types the player may have
NNP_TopLeft, NNP_TopCenter, NNP_TopRight, NNP_CenterLeft, NNP_Center, NNP_CenterRight, NNP_BottomLeft, NNP_BottomCenter, NNP_BottomRight};
Indicates where network notifications should appear on the screen
OACS_CreateSuccessful, OACS_UnknownError, OACS_InvalidUserName, OACS_InvalidPassword, OACS_InvalidUniqueUserName, OACS_UniqueUserNameInUse, OACS_ServiceUnavailable};
The series of status codes that the account creation method can return
The type of player owned content
The state of an async enumeration (friends, content, etc) read request
The possible friend states for a friend entry
OGS_NoSession, OGS_Pending, OGS_Starting, OGS_InProgress, OGS_Ending, OGS_Ended};
Enum indicating the current state of the online game (in progress, ended, etc.)
The state of an async enumeration (friends, content, etc) read request
OSCS_NotConnected, OSCS_Connected, OSCS_ConnectionDropped, OSCS_NoNetworkConnection, OSCS_ServiceUnavailable, OSCS_UpdateRequired, OSCS_ServersTooBusy, OSCS_DuplicateLoginDetected, OSCS_InvalidUser};
Indicates the connection status with the remote online servers
Structures Detail |
---|
var const string AchievementName;};
var const bool bIsSecret;
var const bool bWasAchievedOffline;
var const bool bWasAchievedOnline;
var const string Description;
var const int GamerPoints;
var const string HowTo;
var const int Id;
var Surface Image;
Holds the information contained in Live's achievements for this title
AchievementName:The name of the achievementbIsSecret:Whether the achievement is secret (hidden if not achieved) or notbWasAchievedOffline:Whether the achievement awarded offline or notbWasAchievedOnline:Whether the achievement awarded online or notDescription:The description of the achievementGamerPoints:How much this achievement is worthHowTo:The description of how to meet the requirements of the achievementId:The ID of the achievementImage:The image associated with the achievement
var float AverageRating;};
var int ContentId;
var int ContentType;
var int DownloadCount;
var int FileId;
var int FileSize;
var int LastRatingGiven;
var string LocalFilePath;
var UniqueNetId Owner;
var int RatingCount;
Community file info
AverageRating:The average rating for this file from the communityContentId:Unique identifier for this content fileContentType:Game specific content type fieldDownloadCount:The number of times this file has been downloadedFileId:Additional identifier for providers that need itFileSize:Size in bytes of the payload in the fileLastRatingGiven:The last rating the user gave this contentLocalFilePath:The path to the file if stored locallyOwner:The original owner of the fileRatingCount:The number of times this file has been rated
Community file metadata
ContentType:Unique identifier for this content typeMetadataItems:Metadata to associate with the file
Used to bulk query the friends list
bIsFriend:Out param indicating whether the player is a friend or notUniqueId:The unique player id to check friends status for
var bool bHasNetworkedVoice;};
var bool bHasVoice;
var bool bIsRecognizingSpeech;
var bool bIsRegistered;
var bool bIsTalking;
var bool bWasTalking;
Information about a local talker
bHasNetworkedVoice:Whether the talker should send network databHasVoice:Whether this talker is currently registeredbIsRecognizingSpeech:Whether the player is trying to speak voice commandsbIsRegistered:Whether this player was already registered with the voice interface or notbIsTalking:Whether the remote talker is speaking this framebWasTalking:Whether the local talker was speaking last frame
Holds a named object interface for dynamically bound interfaces
InterfaceName:The name to bind this object toInterfaceObject:The object to store at this location
Holds a name to class name mapping for adding the named interfaces automatically
InterfaceClassName:The class to load and create for the named interfaceInterfaceName:The name to bind this object to
var array<OnlineArbitrationRegistrant> ArbitrationRegistrants;};
var OnlineGameSettings GameSettings;
var array<OnlineRegistrant> Registrants;
var const native transient pointer SessionInfo;
var name SessionName;
Holds the per session information for named sessions
ArbitrationRegistrants:The set of registered players for arbitrationGameSettings:The game settings associated with this sessionRegistrants:List of players registered in the sessionSessionInfo:The platform specific session informationSessionName:The name of the session
var const qword MachineId;};
var const int Trustworthiness;
Struct holding the information about a single arbitration registrant
MachineId:Unique id of the machine involved in the arbitrated sessionTrustworthiness:Trust level of the machine/player for the arbitrated session
var array<string> ContentFiles;};
var array<string> ContentPackages;
var string ContentPath;
var EOnlineContentType ContentType;
var int DeviceId;
var string Filename;
var string FriendlyName;
var byte UserIndex;
Holds information about a single piece of downloaded content
ContentFiles:List of all non-package files in the contentContentPackages:List of packages in the contentContentPath:File system usable reference to the contentContentType:The type of content this representsDeviceId:The device ID the DLC is onFilename:Non-displayable file name of the contentFriendlyName:Displayable name of the contentUserIndex:Optional user index that content is downloaded for (-1 means it's not associated with any user)
var const bool bHasInvitedYou;};
var const bool bHasVoiceSupport;
var bool bHaveInvited;
var const bool bIsJoinable;
var const bool bIsOnline;
var const bool bIsPlaying;
var const bool bIsPlayingThisGame;
var const EOnlineFriendState FriendState;
var const string NickName;
var const string PresenceInfo;
var const qword SessionId;
var const UniqueNetId UniqueId;
Holds information about a player in a friends list
bHasInvitedYou:Whether the friends has sent an invite to you or notbHasVoiceSupport:Whether the friend can chat via voice or notbHaveInvited:Whether the friends has an invitation outstanding from you or notbIsJoinable:Whether the game the friend is in is joinable or notbIsOnline:Whether the friend is online or notbIsPlaying:Whether the friend is playing a game or notbIsPlayingThisGame:Whether the friend is playing the same game or notFriendState:The current state for this friendNickName:Player's nick as published to the online servicePresenceInfo:String holding information about the player's game state (cap-ed flag, etc.)SessionId:The session id that the player is inUniqueId:Unique identifier of the friend
var bool bIsFriendInvite;};
var bool bIsGameInvite;
var bool bWasAccepted;
var bool bWasDenied;
var string Message;
var UniqueNetId SendingPlayerId;
var string SendingPlayerNick;
Holds the data used in a friend message
bIsFriendInvite:Whether this is a friend invite or just a generic messagebIsGameInvite:Whether this message is a game invite or notbWasAccepted:Whether the invite has been accepted or notbWasDenied:Whether the invite has been denied or notMessage:The corresponding message that was sentSendingPlayerId:The player that is sending the messageSendingPlayerNick:The nick name of the player that sent the message
var const bool bIsInGameSession;};
var const bool bIsInPartyVoice;
var const bool bIsLocal;
var const bool bIsPlayingThisGame;
var const bool bIsTalking;
var const int Data1;
var const int Data2;
var const int Data3;
var const int Data4;
var const byte LocalUserNum;
var const ENATType NatType;
var const string Nickname;
var const qword SessionId;
var const int TitleId;
var const UniqueNetId UniqueId;
Holds information about a player in a friends list
bIsInGameSession:Whether the player is in a game sessionbIsInPartyVoice:Whether the player is in party voice or game voicebIsLocal:Whether the player is local to this machine or remotebIsPlayingThisGame:Whether the party member is playing the same game or notbIsTalking:Whether the player is talking or notData1:The first 4 bytes of custom application dataData2:The second 4 bytes of custom application dataData3:The third 4 bytes of custom application dataData4:The fourth 4 bytes of custom application dataLocalUserNum:The local controller id if localNatType:The NAT type for this playerNickname:The player's nicknameSessionId:The session id that the player is inTitleId:The title id of the title the player is inUniqueId:Unique identifier of the friend
Struct holding information used when writing scoring information that is used to determine a player's skill rating
PlayerId:The player that this score is forScore:The score for this playerTeamId:The team that the player is on
A player in a session
PlayerNetId:Unique id of the player involved in the arbitrated session
var bool bIsRegistered;};
var bool bIsTalking;
var bool bWasTalking;
var float LastNotificationTime;
var UniqueNetId TalkerId;
Information about a remote talker
bIsRegistered:Whether this player was already registered with the voice interface or notbIsTalking:Whether the remote talker is speaking this framebWasTalking:Whether the remote talker was speaking last frameLastNotificationTime:Used to trigger talking delegates only after a certain period of time has passedTalkerId:The unique id for this talker
Holds a word/phrase that was recognized by the speech analyzer @note See VoiceInterface.h to change the native layout of this struct
Confidence:How confident the analyzer was in the recognitionWordId:The id of the word in the vocabularyWordText:the actual word
var EOnlineEnumerationReadState AsyncState;};
var array<byte> Data;
var string Filename;
Holds the data used in downloading a file asynchronously from the online service
AsyncState:The async state the file download is inData:The buffer of data for the fileFilename:The name of the file as requested
Struct that holds a transient, unique identifier for a player
Uid:The id used by the network to uniquely identify a player
Functions Detail |
---|
Logs the game settings object
@param GameSettings settings to dump
Log list of players' netids for debugging
Logs the session state for all sessions present
Logs the list of players that are registered for voice
Called from the engine shutdown code to allow the subsystem to release any resources that may have been allocated
Generates a unique number based off of the current script compilation
@return the unique number from the current script compilation
Returns the interface object associated with the specified name
@param InterfaceName the name of the interface to retrieve
@return The object that matches the interface name if found
Returns the number of players that can be signed in on this platform
Called from engine start up code to allow the subsystem to initialize
@return TRUE if the initialization was successful, FALSE otherwise
Used to trigger any automated tasks that need to happen just after startup
Called from native code to assign the account interface
@param NewInterface the object to assign as providing the account interface
@return TRUE if the interface is valid, FALSE otherwise
Called from native code to assign the content interface
@param NewInterface the object to assign as providing the content interface
@return TRUE if the interface is valid, FALSE otherwise
Sets the debug output level for the platform specific API (if applicable)
@param DebugSpewLevel the level to set
Called from native code to assign the game interface
@param NewInterface the object to assign as providing the game interface
@return TRUE if the interface is valid, FALSE otherwise
Adds the interface object to the named interface list with the specified name
@param InterfaceName the name of the interface to add it as
@param NewInterface the object/interface that is being cached
Called from native code to assign the news interface
@param NewInterface the object to assign as providing the news interface
@return TRUE if the interface is valid, FALSE otherwise
Called from native code to assign the party chat interface
@param NewInterface the object to assign as providing the party chat interface
@return TRUE if the interface is valid, FALSE otherwise
Called from native code to assign the player interface
@param NewInterface the object to assign as providing the player interface
@return TRUE if the interface is valid, FALSE otherwise
Called from native code to assign the extended player interface
@param NewInterface the object to assign as providing the player interface
@return TRUE if the interface is valid, FALSE otherwise
Called from native code to assign the stats interface
@param NewInterface the object to assign as providing the stats interface
@return TRUE if the interface is valid, FALSE otherwise
Called from native code to assign the system interface
@param NewInterface the object to assign as providing the system interface
@return TRUE if the interface is valid, FALSE otherwise
Called from native code to assign the title file interface
@param NewInterface the object to assign as providing the file downloading interface
@return TRUE if the interface is valid, FALSE otherwise
Called from native code to assign the voice interface
@param NewInterface the object to assign as providing the voice interface
@return TRUE if the interface is valid, FALSE otherwise
Converts a string representing a UniqueNetId into a UniqueNetId struct.
@param UniqueNetIdString the string containing the text representation of the unique id.
@param out_UniqueId will receive the UniqueNetId generated from the string.
@return TRUE if the string was successfully converted into a UniqueNetId; FALSE if the string was not a valid UniqueNetId.
Generates a string representation of a UniqueNetId struct.
@param IdToConvert the unique net id that should be converted to a string.
@return the specified UniqueNetId represented as a string.
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |