Ejemplo n.º 1
0
std::size_t input_options_hasher::hash(const input_options& v) {
    std::size_t seed(0);

    combine(seed, v.target());
    combine(seed, hash_std_vector_dogen_config_input_descriptor(v.references()));

    return seed;
}
Ejemplo n.º 2
0
std::size_t input_options_hasher::hash(const input_options& v) {
    std::size_t seed(0);

    combine(seed, hash_boost_filesystem_path(v.target()));
    combine(seed, v.external_module_path());
    combine(seed, hash_std_vector_dogen_config_reference(v.references()));

    return seed;
}
Ejemplo n.º 3
0
int main(int argc, char **argv)
{
	SDL_Thread *server_thread;
	
	printf("Welcome to the Zod Engine\n");

	if(argc<=1) starting_conditions.setdefaults();
	
	//read in the arguments
	starting_conditions.getoptions(argc, argv);
	
	//make sure there is nothing conflicting, 
	//like we are trying to make a dedicated server that is supposed to connect to another server
	starting_conditions.checkoptions();
	
	//init this for the bots
	ZCore::CreateRandomBotBypassData(bot_bypass_data, bot_bypass_size);

	//now see what we have
	if(starting_conditions.read_display_version) display_version();
	if(starting_conditions.read_display_help) display_help(argv[0]);
	
	//now what do we really run?
	else if(starting_conditions.read_run_tray)
	{
		run_tray_app();
	}
	else if(starting_conditions.read_is_dedicated)
	{
		//run only a server
		//server_thread = SDL_CreateThread(run_server_thread, NULL);
		run_server_thread(NULL);
	}
	else if(starting_conditions.read_connect_address)
	{
		//connect to a server
		run_player_thread();
	}
	else
	{
		//run a server, then connect to it
		server_thread = SDL_CreateThread(run_server_thread, NULL);
		run_player_thread();
	}

	return 1;
}