Nebula
Loading...
Searching...
No Matches
Scripting::Api::TimeSourceSnapshot Struct Reference

Detailed Description

The layout the managed time source mirror is built from.

The eight byte fields come first and then the four byte ones, which is the order C# declares as well and the only order that puts the entry at 64 bytes without padding on either side. Ticks and the time factor are widened here, because Timing::Tick is 32 bit and a source that runs long enough wraps.

Public Attributes

double frameTime
double time
int64_t ticks
double fixedFrameTime
double accumulator
double timeFactor
uint32_t hash
int32_t availableSteps
int32_t maxStepsPerFrame
int32_t pauseCounter

Member Data Documentation

◆ accumulator

double Scripting::Api::TimeSourceSnapshot::accumulator

◆ availableSteps

int32_t Scripting::Api::TimeSourceSnapshot::availableSteps

◆ fixedFrameTime

double Scripting::Api::TimeSourceSnapshot::fixedFrameTime

◆ frameTime

double Scripting::Api::TimeSourceSnapshot::frameTime

◆ hash

uint32_t Scripting::Api::TimeSourceSnapshot::hash

◆ maxStepsPerFrame

int32_t Scripting::Api::TimeSourceSnapshot::maxStepsPerFrame

◆ pauseCounter

int32_t Scripting::Api::TimeSourceSnapshot::pauseCounter

◆ ticks

int64_t Scripting::Api::TimeSourceSnapshot::ticks

◆ time

double Scripting::Api::TimeSourceSnapshot::time

◆ timeFactor

double Scripting::Api::TimeSourceSnapshot::timeFactor

The documentation for this struct was generated from the following file:
  • /github/workspace/code/addons/nsharp/api/game.cc