iFun Engine API  1.0.0-b3630
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
Public Types | Static Public Member Functions | List of all members
fun::DedicatedServerManager Class Reference
Inheritance diagram for fun::DedicatedServerManager:

Public Types

typedef boost::function
< uint32_t(uint32_t
current_instance_count,
uint32_t idle_instance_count,
uint32_t min_instance_count,
uint32_t max_instance_count,
uint32_t
reserved_instance_count)> 
ConfigureReservedInstanceCountCallback
 
typedef boost::function< void(const
fun::Uuid &match_id, const
fun::Json &data)> 
CustomCallback
 
typedef boost::function< void(const
fun::Uuid &, const fun::Json
&, bool)> 
GetGameStateCallback
 
typedef boost::function< bool(const
std::string &uri, const
fun::Json &claim)> 
JwtAuthorizationCallback
 
typedef boost::function< void(const
fun::Uuid &, const fun::Json
&, bool)> 
MatchResultCallback
 
typedef boost::function< bool(const
std::string &account_id, const
std::string &host, const
uint16_t port, const
std::string &token)> 
PreRedirectionHook
 
typedef boost::function< void(const
fun::Uuid &, const std::vector
< std::string > &, bool)> 
SendCallback
 
typedef boost::function< void(const
fun::Uuid &match_id, const
std::string &account)> 
UserJoinedCallback
 
typedef boost::function< void(const
fun::Uuid &match_id, const
std::string &account)> 
UserLeftCallback
 

Static Public Member Functions

static bool Cancel (const fun::Uuid &match_id, fun::Json *match_data=NULL, std::vector< std::string > *dedicated_server_args=NULL, std::vector< std::string > *accounts=NULL, std::vector< fun::Json > *user_data=NULL)
 
static void GetGameState (const fun::Uuid &match_id, const GetGameStateCallback &callback)
 
static void RegisterConfigureReservedInstanceCountCallback (const ConfigureReservedInstanceCountCallback &callback)
 
static void RegisterCustomCallback (const CustomCallback &callback)
 
static void RegisterJwtAuthorizationCallback (const JwtAuthorizationCallback &callback)
 
static void RegisterMatchResultCallback (const MatchResultCallback &callback)
 
static void RegisterPreRedirectionHook (const PreRedirectionHook &hook)
 
static void RegisterUserEnteredCallback (const UserJoinedCallback &callback)
 
static void RegisterUserLeftCallback (const UserLeftCallback &callback)
 
static void SendUsers (const fun::Uuid &match_id, const fun::Json &match_data, const std::vector< std::string > &accounts, const std::vector< fun::Json > &user_data, const SendCallback &callback)
 
static void Spawn (const fun::Uuid &match_id, const fun::Json &match_data, const std::vector< std::string > &dedicated_server_args, const std::vector< std::string > &accounts, const std::vector< fun::Json > &user_data, const SendCallback &callback)
 
static void Spawn (const fun::Uuid &match_id, const fun::Json &match_data, const std::vector< std::string > &dedicated_server_args, const std::vector< std::string > &accounts, const std::vector< fun::Json > &user_data, const std::vector< std::string > &region_preference, const SendCallback &callback)