Amerio.Stephane Posted March 13 Share Posted March 13 Hi, Is there an API for listing all defined entity types? I'd like to avoid parsing the ig_config.xml as the format may change in the future, who knows. Link to comment
cash-metall Posted March 13 Share Posted March 13 Hello! yes of course you can get access to ig_config.xml in API with IGConfig class IGConfig * config = Manager::get()->getConfig(); Unigine::HashMap<int64_t, EntityTypeDef> types = config->getEntityTypes(); // or just id and names Unigine::HashMap<Unigine::String, int64_t> names = config->getEntityTypeNames(); 1 Link to comment
Recommended Posts