Skip to content

Class TimeSync

ClassList > TimeSync

Public Functions

Type Name
TimeSync ()
void advance_frame (GameInput & input, int advantage, int radvantage)
int recommend_frame_wait_duration (bool require_idle_input)
virtual ~TimeSync ()

Protected Attributes

Type Name
GameInput _last_inputs
int _local
int _next_prediction
int _remote

Public Functions Documentation

function TimeSync

TimeSync::TimeSync () 

function advance_frame

void TimeSync::advance_frame (
    GameInput & input,
    int advantage,
    int radvantage
) 

function recommend_frame_wait_duration

int TimeSync::recommend_frame_wait_duration (
    bool require_idle_input
) 

function ~TimeSync

virtual TimeSync::~TimeSync () 

Protected Attributes Documentation

variable _last_inputs

GameInput TimeSync::_last_inputs[MIN_UNIQUE_FRAMES];

variable _local

int TimeSync::_local[FRAME_WINDOW_SIZE];

variable _next_prediction

int TimeSync::_next_prediction;

variable _remote

int TimeSync::_remote[FRAME_WINDOW_SIZE];


The documentation for this class was generated from the following file C:/Users/wistf/Unreal Projects/NightSkyEngine/Plugins/NightSkyEngine/Source/GGPOUE4/Private/timesync.h