Ejemplo n.º 1
0
inline double ToGameTime(Plugin const& plugin,
                         Instant const& t) {
    return (t - plugin.GameEpoch()) / Second;
}
Ejemplo n.º 2
0
inline Instant FromGameTime(Plugin const& plugin,
                            double const t) {
    return plugin.GameEpoch() + t * Second;
}