MCPcopy Create free account
hub / github.com/CleverRaven/Cataclysm-DDA / add_actor

Function add_actor

src/mapdata.cpp:1294–1298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292static std::map<std::string, cata::clone_ptr<iexamine_actor>> examine_actors;
1293
1294static void add_actor( std::unique_ptr<iexamine_actor> ptr )
1295{
1296 std::string type = ptr->type;
1297 examine_actors[type] = cata::clone_ptr<iexamine_actor>( std::move( ptr ) );
1298}
1299
1300static cata::clone_ptr<iexamine_actor> iexamine_actor_from_jsobj( const JsonObject &jo )
1301{

Callers 3

initMethod · 0.85
usage_from_objectMethod · 0.85
init_mapdataFunction · 0.85

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected