Freeciv-3.1
Loading...
Searching...
No Matches
Data Fields
setting Struct Reference

Data Fields

const char * name
 
enum sset_class sclass
 
enum cmdlevel access_level_read
 
enum cmdlevel access_level_write
 
const char * short_help
 
const char * extra_help
 
const help_callback_func_t help_func
 
enum sset_type stype
 
enum sset_category scategory
 
enum sset_level slevel
 
union { 
 
   struct { 
 
      bool *const   pvalue 
 
      const bool   default_value 
 
      const bool_validate_func_t   validate 
 
      const val_name_func_t   name 
 
      bool   game_value 
 
   }   boolean 
 
   struct { 
 
      int *const   pvalue 
 
      const int   default_value 
 
      const int   min_value 
 
      const int   max_value 
 
      const int_validate_func_t   validate 
 
      int   game_value 
 
   }   integer 
 
   struct { 
 
      char *const   value 
 
      const char *const   default_value 
 
      const size_t   value_size 
 
      const string_validate_func_t   validate 
 
      char *   game_value 
 
   }   string 
 
   struct { 
 
      void *const   pvalue 
 
      const int   store_size 
 
      const int   default_value 
 
      const enum_validate_func_t   validate 
 
      const val_name_func_t   name 
 
      int   game_value 
 
   }   enumerator 
 
   struct { 
 
      unsigned *const   pvalue 
 
      const unsigned   default_value 
 
      const bitwise_validate_func_t   validate 
 
      const val_name_func_t   name 
 
      unsigned   game_value 
 
   }   bitwise 
 
};  
 
const action_callback_func_t action
 
bool locked
 
bool ruleset_settable
 
enum setting_default_level setdef
 
enum setting_default_level game_setdef
 

Detailed Description

Definition at line 88 of file settings.c.

Field Documentation

◆ [union]

union { ... } setting

◆ access_level_read

enum cmdlevel setting::access_level_read

Definition at line 93 of file settings.c.

Referenced by setting_is_visible_at_level().

◆ access_level_write

enum cmdlevel setting::access_level_write

Definition at line 94 of file settings.c.

Referenced by setting_is_changeable().

◆ action

const action_callback_func_t setting::action

Definition at line 169 of file settings.c.

Referenced by setting_action().

◆ [struct]

struct { ... } setting::bitwise

◆ [struct]

struct { ... } setting::boolean

◆ default_value [1/4]

const bool setting::default_value

◆ default_value [2/4]

const int setting::default_value

Definition at line 135 of file settings.c.

◆ default_value [3/4]

const char* const setting::default_value

Definition at line 144 of file settings.c.

◆ default_value [4/4]

const unsigned setting::default_value

Definition at line 161 of file settings.c.

◆ [struct]

struct { ... } setting::enumerator

◆ extra_help

const char* setting::extra_help

Definition at line 108 of file settings.c.

Referenced by huts_help(), send_server_setting_control(), and setting_extra_help().

◆ game_setdef

enum setting_default_level setting::game_setdef

Definition at line 178 of file settings.c.

Referenced by setting_game_restore(), and setting_game_set().

◆ game_value [1/4]

bool setting::game_value

Definition at line 130 of file settings.c.

Referenced by setting_game_free(), setting_game_restore(), and setting_game_set().

◆ game_value [2/4]

int setting::game_value

Definition at line 139 of file settings.c.

◆ game_value [3/4]

char* setting::game_value

Definition at line 147 of file settings.c.

◆ game_value [4/4]

unsigned setting::game_value

Definition at line 164 of file settings.c.

◆ help_func

const help_callback_func_t setting::help_func

Definition at line 111 of file settings.c.

Referenced by setting_extra_help().

◆ [struct]

struct { ... } setting::integer

◆ locked

bool setting::locked

Definition at line 172 of file settings.c.

Referenced by setting_lock_set(), and setting_locked().

◆ max_value

const int setting::max_value

Definition at line 137 of file settings.c.

Referenced by send_server_setting(), setting_int_max(), and setting_int_validate().

◆ min_value

const int setting::min_value

Definition at line 136 of file settings.c.

Referenced by send_server_setting(), setting_int_min(), and setting_int_validate().

◆ name [1/2]

const char* setting::name

◆ name [2/2]

const val_name_func_t setting::name

Definition at line 129 of file settings.c.

◆ pvalue [1/4]

bool* const setting::pvalue

◆ pvalue [2/4]

int* const setting::pvalue

Definition at line 134 of file settings.c.

◆ pvalue [3/4]

void* const setting::pvalue

Definition at line 151 of file settings.c.

◆ pvalue [4/4]

unsigned* const setting::pvalue

Definition at line 160 of file settings.c.

◆ ruleset_settable

bool setting::ruleset_settable

Definition at line 174 of file settings.c.

Referenced by setting_ruleset_one().

◆ scategory

enum sset_category setting::scategory

Definition at line 114 of file settings.c.

Referenced by send_server_setting_control(), and setting_category().

◆ sclass

enum sset_class setting::sclass

Definition at line 90 of file settings.c.

Referenced by setting_is_free_to_change().

◆ setdef

enum setting_default_level setting::setdef

◆ short_help

const char* setting::short_help

Definition at line 100 of file settings.c.

Referenced by send_server_setting_control(), and setting_short_help().

◆ slevel

enum sset_level setting::slevel

Definition at line 115 of file settings.c.

Referenced by setting_level().

◆ store_size

const int setting::store_size

Definition at line 152 of file settings.c.

Referenced by read_enum_value(), set_enum_value(), and setting_enum_set().

◆ [struct]

struct { ... } setting::string

◆ stype

enum sset_type setting::stype

◆ validate [1/5]

const bool_validate_func_t setting::validate

◆ validate [2/5]

const int_validate_func_t setting::validate

Definition at line 138 of file settings.c.

◆ validate [3/5]

const string_validate_func_t setting::validate

Definition at line 146 of file settings.c.

◆ validate [4/5]

const enum_validate_func_t setting::validate

Definition at line 154 of file settings.c.

◆ validate [5/5]

const bitwise_validate_func_t setting::validate

Definition at line 162 of file settings.c.

◆ value

char* const setting::value

◆ value_size

const size_t setting::value_size