Scorum
libraries
protocol
betting
game.cpp
Go to the documentation of this file.
1
#include <
scorum/protocol/betting/game.hpp
>
2
#include <scorum/utils/static_variant_serialization.hpp>
3
4
namespace
fc
{
5
6
using
scorum::protocol::game_type
;
7
8
template
<>
void
to_variant
(
const
game_type
& game, fc::variant& var)
9
{
10
scorum::utils::to_variant
(game, var);
11
}
12
template
<>
void
from_variant
(
const
fc::variant& var,
game_type
& game)
13
{
14
scorum::utils::from_variant
(var, game);
15
}
16
}
fc
Definition:
game.cpp:4
fc::to_variant
void to_variant(const game_type &game, fc::variant &var)
Definition:
game.cpp:8
fc::from_variant
void from_variant(const fc::variant &var, game_type &game)
Definition:
game.cpp:12
scorum::protocol::game_type
fc::static_variant< soccer_game, hockey_game > game_type
Definition:
game.hpp:14
game.hpp
Generated on Thu Jun 9 2022 13:04:26 for Scorum by
1.9.1