MCPcopy Create free account
hub / github.com/benkuper/Chataigne / getCommandDefinitionForItemID

Method getCommandDefinitionForItemID

Source/Module/Module.cpp:136–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136CommandDefinition* Module::getCommandDefinitionForItemID(int itemID)
137{
138 if (itemID == 400) return scriptCommanDef.get();
139 if (itemID >= 500) return templateManager->defManager->definitions[itemID - 500];
140 else return defManager->definitions[itemID];
141}
142
143void Module::onControllableFeedbackUpdateInternal(ControllableContainer* cc, Controllable* c)
144{

Callers 4

getCommandFromResultMethod · 0.45
itemDroppedMethod · 0.45
itemDroppedMethod · 0.45
itemDroppedMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected