Scorum
Public Member Functions | List of all members
scorum::chain::game_service_i Struct Referenceabstract

#include <game.hpp>

Inheritance diagram for scorum::chain::game_service_i:
scorum::chain::base_service_i< game_object > scorum::chain::dbs_service_base< game_service_i > scorum::chain::dbs_game

Public Member Functions

virtual const game_objectcreate_game (const uuid_type &uuid, const std::string &json_metadata, fc::time_point_sec start, uint32_t auto_resolve_delay_sec, const game_type &game, const fc::flat_set< market_type > &markets)=0
 
virtual void finish (const game_object &game, const fc::flat_set< wincase_type > &wincases)=0
 
virtual void update_markets (const game_object &game, const fc::flat_set< market_type > &markets)=0
 
virtual bool is_exists (int64_t game_id) const =0
 
virtual bool is_exists (const uuid_type &uuid) const =0
 
virtual const game_objectget_game (int64_t game_id) const =0
 
virtual const game_objectget_game (const uuid_type &uuid) const =0
 
virtual std::vector< object_cref_typeget_games (fc::time_point_sec start) const =0
 
- Public Member Functions inherited from scorum::chain::base_service_i< game_object >
virtual ~base_service_i ()
 
virtual const object_typecreate (const modifier_type &modifier)=0
 
virtual void update (const modifier_type &modifier)=0
 
virtual void update (const object_type &o, const modifier_type &modifier)=0
 
virtual void remove ()=0
 
virtual void remove (const object_type &o)=0
 
virtual void remove_all (const std::vector< object_cref_type > &os)=0
 
virtual bool is_exists () const=0
 
virtual const object_typeget () const=0
 

Additional Inherited Members

- Public Types inherited from scorum::chain::base_service_i< game_object >
using object_type = game_object
 
using modifier_type = std::function< void(object_type &)>
 
using call_type = std::function< void(const object_type &)>
 
using object_cref_type = std::reference_wrapper< const object_type >
 

Detailed Description

Definition at line 15 of file game.hpp.

Member Function Documentation

◆ create_game()

virtual const game_object& scorum::chain::game_service_i::create_game ( const uuid_type uuid,
const std::string &  json_metadata,
fc::time_point_sec  start,
uint32_t  auto_resolve_delay_sec,
const game_type game,
const fc::flat_set< market_type > &  markets 
)
pure virtual

Implemented in scorum::chain::dbs_game.

◆ finish()

virtual void scorum::chain::game_service_i::finish ( const game_object game,
const fc::flat_set< wincase_type > &  wincases 
)
pure virtual

Implemented in scorum::chain::dbs_game.

◆ get_game() [1/2]

virtual const game_object& scorum::chain::game_service_i::get_game ( const uuid_type uuid) const
pure virtual

Implemented in scorum::chain::dbs_game.

◆ get_game() [2/2]

virtual const game_object& scorum::chain::game_service_i::get_game ( int64_t  game_id) const
pure virtual

Implemented in scorum::chain::dbs_game.

◆ get_games()

virtual std::vector<object_cref_type> scorum::chain::game_service_i::get_games ( fc::time_point_sec  start) const
pure virtual

Implemented in scorum::chain::dbs_game.

◆ is_exists() [1/2]

virtual bool scorum::chain::game_service_i::is_exists ( const uuid_type uuid) const
pure virtual

Implemented in scorum::chain::dbs_game.

◆ is_exists() [2/2]

virtual bool scorum::chain::game_service_i::is_exists ( int64_t  game_id) const
pure virtual

Implemented in scorum::chain::dbs_game.

◆ update_markets()

virtual void scorum::chain::game_service_i::update_markets ( const game_object game,
const fc::flat_set< market_type > &  markets 
)
pure virtual

Implemented in scorum::chain::dbs_game.


The documentation for this struct was generated from the following file: