MCPcopy Create free account
hub / github.com/DFHack/dfhack / command_result plugin_init

Function command_result plugin_init

plugins/pathable.cpp:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42static std::vector<TexposHandle> textures;
43
44DFhackCExport command_result plugin_init(color_ostream &out, std::vector<PluginCommand> &commands) {
45 textures = Textures::loadTileset(Core::getInstance().getHackPath() / "data" / "art" / "pathable.png", 32, 32, true);
46 return CR_OK;
47}
48
49DFhackCExport command_result plugin_shutdown(color_ostream &out) {
50 return CR_OK;

Callers

nothing calls this directly

Calls 1

getHackPathMethod · 0.80

Tested by

no test coverage detected