project_files/frontlib/model/gamesetup.h
author Medo <smaxein@googlemail.com>
Sat, 09 Jun 2012 03:28:38 +0200
changeset 7179 f84805e6df03
child 7224 5143861c83bd
permissions -rw-r--r--
Implemented game launching API for the frontlib. It is still buggy though, and not all game settings can be conveniently created/modified yet.

/**
 * A complete game configuration that contains all settings for a
 * local or networked game.
 *
 * It should be noted that the meta-configuration is not included.
 */

#ifndef MODEL_GAMESETUP_H_
#define MODEL_GAMESETUP_H_

#include "cfg.h"
#include "weapon.h"
#include "map.h"
#include "team.h"

typedef struct {
    char *seed;						// required
    char *script;					// optional
    flib_cfg *gamescheme;			// optional
    flib_map *map;					// optional
	flib_team *teams;				// optional
	int teamcount;
} flib_gamesetup;

#endif