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