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