MCPcopy Create free account
hub / github.com/DFHack/dfhack / Init

Method Init

library/DataDefs.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137static std::mutex *known_mutex = NULL;
138
139void compound_identity::Init(Core *core)
140{
141 if (!known_mutex)
142 known_mutex = new std::mutex();
143
144 // do any late initialization required for compound identities
145
146 for (auto ci : *list)
147 ci->doInit(core);
148}
149
150bitfield_identity::bitfield_identity(size_t size,
151 const compound_identity *scope_parent, const char *dfhack_name,

Callers

nothing calls this directly

Calls 1

doInitMethod · 0.80

Tested by

no test coverage detected