Xonotic
skin.qh File Reference
+ Include dependency graph for skin.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SKINBEGIN
 
#define SKINBEGIN   void Skin_ApplySetting(string key, string _value) { switch(key) {
 
#define SKINEND
 
#define SKINEND   case "": break; case "//": break; default: LOG_TRACE("Invalid key in skin file: ", key); } }
 
#define SKINFLOAT(name, def)   float SKIN##name = def
 
#define SKINFLOAT(name, def)   case #name: SKIN##name = stof(_value); break
 
#define SKINSTRING(name, def)   string SKIN##name = def
 
#define SKINSTRING(name, def)   case #name: SKIN##name = strzone(_value); break
 
#define SKINVECTOR(name, def)   vector SKIN##name = def
 
#define SKINVECTOR(name, def)   case #name: SKIN##name = stov(_value); break
 

Macro Definition Documentation

◆ SKINBEGIN [1/2]

#define SKINBEGIN

Definition at line 16 of file skin.qh.

◆ SKINBEGIN [2/2]

#define SKINBEGIN   void Skin_ApplySetting(string key, string _value) { switch(key) {

Definition at line 16 of file skin.qh.

◆ SKINEND [1/2]

#define SKINEND

Definition at line 22 of file skin.qh.

◆ SKINEND [2/2]

#define SKINEND   case "": break; case "//": break; default: LOG_TRACE("Invalid key in skin file: ", key); } }

Definition at line 22 of file skin.qh.

◆ SKINFLOAT [1/2]

#define SKINFLOAT (   name,
  def 
)    float SKIN##name = def

Definition at line 18 of file skin.qh.

◆ SKINFLOAT [2/2]

#define SKINFLOAT (   name,
  def 
)    case #name: SKIN##name = stof(_value); break

Definition at line 18 of file skin.qh.

◆ SKINSTRING [1/2]

#define SKINSTRING (   name,
  def 
)    string SKIN##name = def

Definition at line 20 of file skin.qh.

◆ SKINSTRING [2/2]

#define SKINSTRING (   name,
  def 
)    case #name: SKIN##name = strzone(_value); break

Definition at line 20 of file skin.qh.

◆ SKINVECTOR [1/2]

#define SKINVECTOR (   name,
  def 
)    vector SKIN##name = def

Definition at line 17 of file skin.qh.

◆ SKINVECTOR [2/2]

#define SKINVECTOR (   name,
  def 
)    case #name: SKIN##name = stov(_value); break

Definition at line 17 of file skin.qh.