|
|
|
@ -42,11 +42,12 @@ Crawler::Crawler() |
|
|
|
|
|
|
|
|
|
utils::datafile::Read(DATA,"assets/config/configuration.txt"); |
|
|
|
|
|
|
|
|
|
std::string CONFIG_PATH = "config_path"S; |
|
|
|
|
std::string CONFIG_PATH = "config_path"_S; |
|
|
|
|
|
|
|
|
|
std::string GFX_CONFIG = CONFIG_PATH + "gfx_config"S; |
|
|
|
|
std::string GFX_CONFIG = CONFIG_PATH + "gfx_config"_S; |
|
|
|
|
utils::datafile::Read(DATA,GFX_CONFIG); |
|
|
|
|
WINDOW_SIZE={"WINDOW_SIZE"i[0],"WINDOW_SIZE"i[1]}; |
|
|
|
|
WINDOW_SIZE={"WINDOW_SIZE"_i[0],"WINDOW_SIZE"_i[1]}; |
|
|
|
|
std::cout<<WINDOW_SIZE<<std::endl; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool Crawler::OnUserCreate(){ |
|
|
|
@ -1138,34 +1139,34 @@ int main() |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
datafilestringdata operator ""s(const char*key,std::size_t len){ |
|
|
|
|
datafilestringdata operator ""_s(const char*key,std::size_t len){ |
|
|
|
|
return {DATA,std::string(key,len)}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
datafileintdata operator ""i(const char*key,std::size_t len){ |
|
|
|
|
datafileintdata operator ""_i(const char*key,std::size_t len){ |
|
|
|
|
return {DATA,std::string(key,len)}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
datafilefloatdata operator ""f(const char*key,std::size_t len){ |
|
|
|
|
datafilefloatdata operator ""_f(const char*key,std::size_t len){ |
|
|
|
|
return {DATA,std::string(key,len)}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
datafiledoubledata operator ""d(const char*key,std::size_t len){ |
|
|
|
|
datafiledoubledata operator ""_d(const char*key,std::size_t len){ |
|
|
|
|
return {DATA,std::string(key,len)}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
std::string operator ""S(const char*key,std::size_t len){ |
|
|
|
|
std::string operator ""_S(const char*key,std::size_t len){ |
|
|
|
|
return DATA.GetProperty(std::string(key,len)).GetString(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int operator ""I(const char*key,std::size_t len){ |
|
|
|
|
int operator ""_I(const char*key,std::size_t len){ |
|
|
|
|
return DATA.GetProperty(std::string(key,len)).GetInt(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
float operator ""F(const char*key,std::size_t len){ |
|
|
|
|
float operator ""_F(const char*key,std::size_t len){ |
|
|
|
|
return DATA.GetProperty(std::string(key,len)).GetReal(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
double operator ""D(const char*key,std::size_t len){ |
|
|
|
|
double operator ""_D(const char*key,std::size_t len){ |
|
|
|
|
return DATA.GetProperty(std::string(key,len)).GetReal(); |
|
|
|
|
} |