Class SyncTestBackend
Inherits the following classes: GGPOSession
Public Functions
| Type | Name |
|---|---|
| virtual GGPOErrorCode | AddLocalInput (GGPOPlayerHandle player, void * values, int size) |
| virtual GGPOErrorCode | AddPlayer (GGPOPlayer * player, GGPOPlayerHandle * handle) |
| virtual GGPOErrorCode | DoPoll (int timeout) |
| virtual GGPOErrorCode | IncrementFrame (void) |
| virtual GGPOErrorCode | Logv (const char * fmt, va_list list) override |
| virtual GGPOErrorCode | SyncInput (void * values, int size, int * disconnect_flags) |
| SyncTestBackend (GGPOSessionCallbacks * cb, const char * gamename, int frames, int num_players) |
|
| virtual | ~SyncTestBackend () |
Public Functions inherited from GGPOSession
See GGPOSession
| Type | Name |
|---|---|
| virtual GGPOErrorCode | AddLocalInput (GGPOPlayerHandle player, void * values, int size) = 0 |
| virtual GGPOErrorCode | AddPlayer (GGPOPlayer * player, GGPOPlayerHandle * handle) = 0 |
| virtual GGPOErrorCode | Chat (char * text) |
| virtual GGPOErrorCode | DisconnectPlayer (GGPOPlayerHandle handle) |
| virtual GGPOErrorCode | DoPoll (int timeout) |
| virtual GGPOErrorCode | GetNetworkStats (FGGPONetworkStats * stats, GGPOPlayerHandle handle) |
| virtual GGPOErrorCode | IncrementFrame (void) |
| virtual GGPOErrorCode | Logv (const char * fmt, va_list list) |
| virtual GGPOErrorCode | SetDisconnectNotifyStart (int timeout) |
| virtual GGPOErrorCode | SetDisconnectTimeout (int timeout) |
| virtual GGPOErrorCode | SetFrameDelay (GGPOPlayerHandle player, int delay) |
| virtual GGPOErrorCode | SyncInput (void * values, int size, int * disconnect_flags) = 0 |
| virtual GGPOErrorCode | TrySynchronizeLocal () |
| virtual | ~GGPOSession () |
Protected Attributes
| Type | Name |
|---|---|
| GGPOSessionCallbacks | _callbacks |
| int | _check_distance |
| GameInput | _current_input |
| char | _game |
| GameInput | _last_input |
| int | _last_verified |
| FILE * | _logfp |
| int | _num_players |
| bool | _rollingback |
| bool | _running |
| RingBuffer< SavedInfo, 32 > | _saved_frames |
| Sync | _sync |
Protected Functions
| Type | Name |
|---|---|
| void | BeginLog (int saving) |
| void | EndLog () |
| void | LogSaveStates (SavedInfo & info) |
| void | RaiseSyncError (const char * fmt, ...) |
Public Functions Documentation
function AddLocalInput
virtual GGPOErrorCode SyncTestBackend::AddLocalInput (
GGPOPlayerHandle player,
void * values,
int size
)
Implements GGPOSession::AddLocalInput
function AddPlayer
virtual GGPOErrorCode SyncTestBackend::AddPlayer (
GGPOPlayer * player,
GGPOPlayerHandle * handle
)
Implements GGPOSession::AddPlayer
function DoPoll
virtual GGPOErrorCode SyncTestBackend::DoPoll (
int timeout
)
Implements GGPOSession::DoPoll
function IncrementFrame
virtual GGPOErrorCode SyncTestBackend::IncrementFrame (
void
)
Implements GGPOSession::IncrementFrame
function Logv
virtual GGPOErrorCode SyncTestBackend::Logv (
const char * fmt,
va_list list
) override
Implements GGPOSession::Logv
function SyncInput
virtual GGPOErrorCode SyncTestBackend::SyncInput (
void * values,
int size,
int * disconnect_flags
)
Implements GGPOSession::SyncInput
function SyncTestBackend
SyncTestBackend::SyncTestBackend (
GGPOSessionCallbacks * cb,
const char * gamename,
int frames,
int num_players
)
function ~SyncTestBackend
virtual SyncTestBackend::~SyncTestBackend ()
Protected Attributes Documentation
variable _callbacks
GGPOSessionCallbacks SyncTestBackend::_callbacks;
variable _check_distance
int SyncTestBackend::_check_distance;
variable _current_input
GameInput SyncTestBackend::_current_input;
variable _game
char SyncTestBackend::_game[128];
variable _last_input
GameInput SyncTestBackend::_last_input;
variable _last_verified
int SyncTestBackend::_last_verified;
variable _logfp
FILE* SyncTestBackend::_logfp;
variable _num_players
int SyncTestBackend::_num_players;
variable _rollingback
bool SyncTestBackend::_rollingback;
variable _running
bool SyncTestBackend::_running;
variable _saved_frames
RingBuffer<SavedInfo, 32> SyncTestBackend::_saved_frames;
variable _sync
Sync SyncTestBackend::_sync;
Protected Functions Documentation
function BeginLog
void SyncTestBackend::BeginLog (
int saving
)
function EndLog
void SyncTestBackend::EndLog ()
function LogSaveStates
void SyncTestBackend::LogSaveStates (
SavedInfo & info
)
function RaiseSyncError
void SyncTestBackend::RaiseSyncError (
const char * fmt,
...
)
The documentation for this class was generated from the following file C:/Users/wistf/Unreal Projects/NightSkyEngine/Plugins/NightSkyEngine/Source/GGPOUE4/Private/backends/synctest.h