McRogueFace/deps_windows/libtcod-1.23.1-x86_64-msvc/data/cfg/sample.cfg

44 lines
1.0 KiB
INI

myStruct "struct_name" {
//
bool_field=true
char_field='Z'
int_field=24
float_field=3.14
string_field="hello"
color_field="255,128,128"
dice_field="0.5x3d5+2"
// dynamically declared fields
bool bool_field2=false
char char_field2='@'
int int_field2=4
float float_field2=4.3
string string_field2="world"
color color_field2=#FF22CC
dice dice_field2="3d20"
bool_list=[true, false, true]
char_list=['a', 'b', 'z']
integer_list=[13,2,-3]
float_list=[5.0,2.0,-3.5]
string_list=["item one","time_two"]
color_list=["42,42,142","128,64,128"]
// dice_list=["3d4","2d4+2","0.75x4d6-1"]
// dynamically declared list fields
bool[] bool_list2=[true, false, true]
char[] char_list2=['a', 'b', 'z']
int[] integer_list2=[13,2,-3]
float[] float_list2=[5.0,2.0,-3.5]
string[] string_list2=["item one","time_two"]
color[] color_list2=["42,42,142","128,64,128"]
}
// a completely dynamic structure (not declared at compile time)
struct dynStruct {
int someVar=4
struct subStruct {
float anotherVar=4.3
}
}