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

Classes

struct  Zone
 

Public Types

typedef function< void(const
Ptr< World > &)> 
CreateCallback
 
typedef function< void(const
Rpc::PeerId &)> 
FindServerCallback
 
typedef function< void(const
string &, const string
&, const string &, const Json
&, bool, const Ptr
< World::Object > &)> 
ZoneHandler
 
typedef std::vector< ZoneZoneVector
 

Static Public Member Functions

static void Create (const string &name, const ZoneVector &zones, float index_block_length, const CreateCallback &callback, int64_t channel=0) ASSERT_NO_ROLLBACK
 
static Ptr< WorldCreateLocal (const string &name, const ZoneVector &zones, float index_block_length, int64_t channel=0) ASSERT_NO_ROLLBACK
 
static bool Delete (const string &name, int64_t channel=0) ASSERT_NO_ROLLBACK
 
static bool DeleteLocal (const string &name, int64_t channel=0) ASSERT_NO_ROLLBACK
 
static void FindServer (const string &name, const FindServerCallback &callback, int64_t channel=0) ASSERT_NO_ROLLBACK
 
static Ptr< WorldGet (const string &name, int64_t channel=0)
 
static Ptr< WorldGetLocal (const string &name, int64_t channel=0)
 
static void RegisterZoneHandler (const ZoneHandler &handler)