MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / SetLightDirect

Method SetLightDirect

Source/GridModule.cpp:290–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void GridModule::SetLightDirect(int x, int y, int color, bool force)
291{
292 if (mGridControlTarget->GetGridController())
293 mGridControlTarget->GetGridController()->SetLightDirect(x, y, color, force);
294 SetCellColor(x, y, color);
295 mGrid->SetVal(x, y, color > 0 ? 1 : 0, false);
296}
297
298void GridModule::ResetLights()
299{

Callers 2

UpdateLightsMethod · 0.45
UpdateLightsMethod · 0.45

Calls 2

GetGridControllerMethod · 0.80
SetValMethod · 0.80

Tested by

no test coverage detected