engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
FSaveGameNetworkReplayStreamer类 参考

Local file streamer that supports playback/recording to files on disk, and transferring replays to and from SaveGame slots. 更多...

#include <SaveGameNetworkReplayStreaming.h>

+ 类 FSaveGameNetworkReplayStreamer 继承关系图:

Public 成员函数

virtual void DeleteFinishedStream (const FString &ReplayName, const FDeleteFinishedStreamCallback &Delegate) override
 Attempts to delete the stream with the specified name. 更多...
 
virtual void EnumerateRecentStreams (const FNetworkReplayVersion &ReplayVersion, const int32 UserIndex, const FEnumerateStreamsCallback &Delegate) override
 Retrieves the streams that have been recently viewed. 更多...
 
virtual void EnumerateStreams (const FNetworkReplayVersion &InReplayVersion, const int32 UserIndex, const FString &MetaString, const TArray< FString > &ExtraParms, const FEnumerateStreamsCallback &Delegate) override
 Retrieves the streams that are available for viewing. 更多...
 
virtual void KeepReplay (const FString &ReplayName, const bool bKeep, const FKeepReplayCallback &Delegate) override
 Used to commit a replay to permanent storage. 更多...
 
virtual void RenameReplay (const FString &ReplayName, const FString &NewName, const FRenameReplayCallback &Delegate) override
 Used to change the name of a replay. 更多...
 
virtual void RenameReplayFriendlyName (const FString &ReplayName, const FString &NewFriendlyName, const FRenameReplayCallback &Delegate) override
 Used to change the friendly name of a replay. 更多...
 
virtual void StartStreaming (const FStartStreamingParameters &Params, const FStartStreamingCallback &Delegate) override
 INetworkReplayStreamer implementation
 
- Public 成员函数 继承自 FLocalFileNetworkReplayStreamer
virtual void AddUserToReplay (const FString &UserString) override
 Adds a join-in-progress user to the set of users associated with the currently recording replay (if any) 更多...
 
virtual void DeleteFinishedStream (const FString &StreamName, const FDeleteFinishedStreamCallback &Delegate) override
 Attempts to delete the stream with the specified name. 更多...
 
virtual void EnumerateRecentStreams (const FNetworkReplayVersion &ReplayVersion, const int32 UserIndex, const FEnumerateStreamsCallback &Delegate) override
 Retrieves the streams that have been recently viewed. 更多...
 
virtual void EnumerateStreams (const FNetworkReplayVersion &InReplayVersion, const int32 UserIndex, const FString &MetaString, const TArray< FString > &ExtraParms, const FEnumerateStreamsCallback &Delegate) override
 Retrieves the streams that are available for viewing. 更多...
 
virtual EStreamingOperationResult GetDemoPath (FString &DemoPath) const override
 Gets the current base directory where Demos are stored. 更多...
 
virtual ENetworkReplayError::Type GetLastError () const override
 Returns the last error that occurred while streaming replays
 
virtual uint32 GetMaxFriendlyNameSize () const override
 Returns the maximum size of the friendly name text for this streamer, or 0 for unlimited.
 
virtual FString GetReplayID () const override
 Returns the active replay name
 
virtual bool IsLive () const override
 Returns true if the playing stream is currently in progress
 
virtual void KeepReplay (const FString &ReplayName, const bool bKeep, const FKeepReplayCallback &Delegate) override
 Used to commit a replay to permanent storage. 更多...
 
virtual void RenameReplay (const FString &ReplayName, const FString &NewName, const FRenameReplayCallback &Delegate) override
 Used to change the name of a replay. 更多...
 
virtual void RenameReplayFriendlyName (const FString &ReplayName, const FString &NewFriendlyName, const FRenameReplayCallback &Delegate) override
 Used to change the friendly name of a replay. 更多...
 
virtual EStreamingOperationResult SetDemoPath (const FString &DemoPath) override
 Changes the base directory where Demos are stored. 更多...
 
virtual void SetTimeBufferHintSeconds (const float InTimeBufferHintSeconds) override
 Sets a hint for how much data needs to be kept in memory. 更多...
 
virtual void StartStreaming (const FStartStreamingParameters &Params, const FStartStreamingCallback &Delegate) override
 INetworkReplayStreamer implementation
 
virtual void AddUserToReplay (const FString &UserString)=0
 Adds a join-in-progress user to the set of users associated with the currently recording replay (if any) 更多...
 
virtual void DeleteFinishedStream (const FString &StreamName, const FDeleteFinishedStreamCallback &Delegate)=0
 Attempts to delete the stream with the specified name. 更多...
 
virtual void EnumerateRecentStreams (const FNetworkReplayVersion &ReplayVersion, const int32 UserIndex, const FEnumerateStreamsCallback &Delegate)=0
 Retrieves the streams that have been recently viewed. 更多...
 
virtual void EnumerateStreams (const FNetworkReplayVersion &ReplayVersion, const int32 UserIndex, const FString &MetaString, const TArray< FString > &ExtraParms, const FEnumerateStreamsCallback &Delegate)=0
 Retrieves the streams that are available for viewing. 更多...
 
virtual EStreamingOperationResult GetDemoPath (FString &DemoPath) const =0
 Gets the current base directory where Demos are stored. 更多...
 
virtual ENetworkReplayError::Type GetLastError () const =0
 Returns the last error that occurred while streaming replays
 
virtual uint32 GetMaxFriendlyNameSize () const =0
 Returns the maximum size of the friendly name text for this streamer, or 0 for unlimited.
 
virtual FString GetReplayID () const =0
 Returns the active replay name
 
virtual bool IsLive () const =0
 Returns true if the playing stream is currently in progress
 
virtual void KeepReplay (const FString &ReplayName, const bool bKeep, const FKeepReplayCallback &Delegate)=0
 Used to commit a replay to permanent storage. 更多...
 
virtual void RenameReplay (const FString &ReplayName, const FString &NewName, const FRenameReplayCallback &Delegate)=0
 Used to change the name of a replay. 更多...
 
virtual void RenameReplayFriendlyName (const FString &ReplayName, const FString &NewFriendlyName, const FRenameReplayCallback &Delegate)=0
 Used to change the friendly name of a replay. 更多...
 
virtual EStreamingOperationResult SetDemoPath (const FString &DemoPath)=0
 Changes the base directory where Demos are stored. 更多...
 
virtual void SetTimeBufferHintSeconds (const float InTimeBufferHintSeconds)=0
 Sets a hint for how much data needs to be kept in memory. 更多...
 
- Public 成员函数 继承自 TSharedFromThis< FLocalFileNetworkReplayStreamer >
TSharedRef< FLocalFileNetworkReplayStreamer, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< FLocalFileNetworkReplayStreamer const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

Protected 成员函数

virtual bool GetSaveGameOption (const FSaveGameOptionInfo &OptionInfo, FString &OptionValue) const
 Called during KeepReplay to get options when saving a replay. 更多...
 
- Protected 成员函数 继承自 TSharedFromThis< FLocalFileNetworkReplayStreamer >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 

额外继承的成员函数

- Public 属性 继承自 FLocalFileNetworkReplayStreamer
TMap< int32, TSharedPtr< FCachedFileRequest > > DeltaCheckpointCache
 Map of checkpoint index to cached value
 
TMap< int32, TSharedPtr< FCachedFileRequest > > RequestCache
 Map of chunk index to cached value
 
- Protected 类型 继承自 FLocalFileNetworkReplayStreamer
enum class  EStreamerState
 EStreamerState - Overall state of the streamer
 
- 静态 Protected 成员函数 继承自 TSharedFromThis< FLocalFileNetworkReplayStreamer >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
- Protected 属性 继承自 FLocalFileNetworkReplayStreamer
FLocalFileReplayInfo CurrentReplayInfo
 Currently playing or recording replay metadata
 
FString CurrentStreamName
 Remember the name of the current stream, if any.
 
FLocalFileStreamFArchive HeaderAr
 Handle to the archive that will read/write the demo header
 
FLocalFileStreamFArchive StreamAr
 Handle to the archive that will read/write network packets
 
EStreamerState StreamerState
 Overall state of the streamer
 

详细描述

Local file streamer that supports playback/recording to files on disk, and transferring replays to and from SaveGame slots.

EnumerateStreams may be used to list all available replays that are in SaveGame slots. The Name member in any FNetworkReplayStreamInfo returned will be the SaveGame slot where the replay lives.

EnumerateRecentStreams may be used to list all available replays that are not in SaveGame slots. The Name member in any FNetworkReplayStreamInfo returned will be the relative path where the replay lives.

StartStreaming can be used to play replays both in and not in SaveGame slots. StartStreaming does not automatically put a replay in a SaveGame slot.

KeepReplay can be used to move a non SaveGame slot replay into a SaveGame slot. The original replay is left untouched.

DeleteFinishedStream can be used to delete replays both in and not in SaveGame slots.

Only one Save Game operation is permitted to occur at a single time (even across Streamers).

TODO: Proper handling of UserIndex.

成员函数说明

◆ DeleteFinishedStream()

virtual void FSaveGameNetworkReplayStreamer::DeleteFinishedStream ( const FString &  StreamName,
const FDeleteFinishedStreamCallback &  Delegate 
)
overridevirtual

Attempts to delete the stream with the specified name.

May execute asynchronously.

参数
StreamNameThe name of the stream to delete
DelegateA delegate that will be executed if bound when the delete operation completes

重载 FLocalFileNetworkReplayStreamer .

◆ EnumerateRecentStreams()

virtual void FSaveGameNetworkReplayStreamer::EnumerateRecentStreams ( const FNetworkReplayVersion &  ReplayVersion,
const int32  UserIndex,
const FEnumerateStreamsCallback &  Delegate 
)
overridevirtual

Retrieves the streams that have been recently viewed.

May execute asynchronously.

参数
DelegateA delegate that will be executed if bound when the list of streams is available

重载 FLocalFileNetworkReplayStreamer .

◆ EnumerateStreams()

virtual void FSaveGameNetworkReplayStreamer::EnumerateStreams ( const FNetworkReplayVersion &  ReplayVersion,
const int32  UserIndex,
const FString &  MetaString,
const TArray< FString > &  ExtraParms,
const FEnumerateStreamsCallback &  Delegate 
)
overridevirtual

Retrieves the streams that are available for viewing.

May execute asynchronously. Allows the caller to pass in a custom list of query parameters

重载 FLocalFileNetworkReplayStreamer .

◆ GetSaveGameOption()

virtual bool FSaveGameNetworkReplayStreamer::GetSaveGameOption ( const FSaveGameOptionInfo &  OptionInfo,
FString &  OptionValue 
) const
inlineprotectedvirtual

Called during KeepReplay to get options when saving a replay.

Note, this may be called off the GameThread and may not be called on every platform.

参见
FGameDelegates::GetExtendedSaveGameInfoDelegate
参数
OptionInfoInfo struct that describes the requested option and current streamer status.
OptionValue(Out) The desired value for the option.
返回
True if this event was handled. False if it should be passed to the original delegate (

◆ KeepReplay()

virtual void FSaveGameNetworkReplayStreamer::KeepReplay ( const FString &  ReplayName,
const bool  bKeep,
const FKeepReplayCallback &  Delegate 
)
overridevirtual

Used to commit a replay to permanent storage.

参数
ReplayNameName of the replay to keep.
bKeepWhether or not we actually want to keep this replay.

重载 FLocalFileNetworkReplayStreamer .

◆ RenameReplay()

virtual void FSaveGameNetworkReplayStreamer::RenameReplay ( const FString &  ReplayName,
const FString &  NewName,
const FRenameReplayCallback &  Delegate 
)
overridevirtual

Used to change the name of a replay.

Note, this will change the name used to refer to the replay (if successful).

参数
ReplayNameName of the replay to rename.
NewNameThe new name for the replay.

重载 FLocalFileNetworkReplayStreamer .

◆ RenameReplayFriendlyName()

virtual void FSaveGameNetworkReplayStreamer::RenameReplayFriendlyName ( const FString &  ReplayName,
const FString &  NewFriendlyName,
const FRenameReplayCallback &  Delegate 
)
overridevirtual

Used to change the friendly name of a replay.

Note, changing the friendly name does not change the name used to refer to replay.

参数
ReplayNameName of the replay to rename.
NewFriendlyNameThe new friendly name for the replay.

重载 FLocalFileNetworkReplayStreamer .


该类的文档由以下文件生成: