project_files/frontlib/hwconsts.h
branchflibqtfrontend
changeset 8263 a0d586321d6f
parent 8261 c8236fcbe160
child 8276 d4e113e745a9
equal deleted inserted replaced
8261:c8236fcbe160 8263:a0d586321d6f
    91  * These structs define the meaning of values in the flib_scheme struct, i.e. their correspondence to
    91  * These structs define the meaning of values in the flib_scheme struct, i.e. their correspondence to
    92  * ini settings, engine commands and positions in the network protocol (the last is encoded in the
    92  * ini settings, engine commands and positions in the network protocol (the last is encoded in the
    93  * order of settings/mods).
    93  * order of settings/mods).
    94  */
    94  */
    95 typedef struct {
    95 typedef struct {
    96     const char *name;				//! A name identifying this setting (used as key in the schemes file)
    96     const char *name;				//!< A name identifying this setting (used as key in the schemes file)
    97     const char *engineCommand;		//! The command needed to send the setting to the engine. May be null if the setting is not sent to the engine (for the "health" setting)
    97     const char *engineCommand;		//!< The command needed to send the setting to the engine. May be null if the setting is not sent to the engine (for the "health" setting)
    98     const bool maxMeansInfinity;	//! If true, send a very high number to the engine if the setting is equal to its maximum
    98     const bool maxMeansInfinity;	//!< If true, send a very high number to the engine if the setting is equal to its maximum
    99     const bool times1000;			//! If true (for time-based settings), multiply the setting by 1000 before sending it to the engine.
    99     const bool times1000;			//!< If true (for time-based settings), multiply the setting by 1000 before sending it to the engine.
   100     const int min;					//! The smallest allowed value
   100     const int min;					//!< The smallest allowed value
   101     const int max;					//! The highest allowed value
   101     const int max;					//!< The highest allowed value
   102     const int def;					//! The default value
   102     const int def;					//!< The default value
   103 } flib_metascheme_setting;
   103 } flib_metascheme_setting;
   104 
   104 
   105 typedef struct {
   105 typedef struct {
   106     const char *name;				//! A name identifying this mod (used as key in the schemes file)
   106     const char *name;				//!< A name identifying this mod (used as key in the schemes file)
   107     const int bitmaskIndex;			//! Mods are sent to the engine in a single integer, this field describes which bit of that integer is used
   107     const int bitmaskIndex;			//!< Mods are sent to the engine in a single integer, this field describes which bit of that integer is used
   108     								//! for this particular mod.
   108     								//! for this particular mod.
   109 } flib_metascheme_mod;
   109 } flib_metascheme_mod;
   110 
   110 
   111 typedef struct {
   111 typedef struct {
   112 	const int settingCount;
   112 	const int settingCount;