MCPcopy Create free account
hub / github.com/The-Powder-Toy/The-Powder-Toy / InitCustomCanMove

Method InitCustomCanMove

src/lua/LuaScriptInterface.cpp:191–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void LuaScriptInterface::InitCustomCanMove()
192{
193 auto &sd = SimulationData::Ref();
194 sd.init_can_move();
195 for (auto moving = 0; moving < PT_NUM; ++moving)
196 {
197 for (auto into = 0; into < PT_NUM; ++into)
198 {
199 if (customCanMove[moving][into] & 0x80)
200 {
201 sd.can_move[moving][into] = customCanMove[moving][into] & 0x7F;
202 }
203 }
204 }
205}
206
207void CommandInterface::Init()
208{

Callers 4

allocateFunction · 0.80
elementFunction · 0.80
propertyFunction · 0.80
loadDefaultFunction · 0.80

Calls 1

init_can_moveMethod · 0.80

Tested by

no test coverage detected