Jump to content

Known entity types?


Recommended Posts


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


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();


  • Thanks 1
Link to comment
  • Create New...