MCPcopy Create free account
hub / github.com/BambooTracker/BambooTracker / pasteMixPatternCells

Method pasteMixPatternCells

BambooTracker/bamboo_tracker.cpp:2705–2714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2703}
2704
2705bool BambooTracker::pasteMixPatternCells(int songNum, int beginTrack, int beginColmn, int beginOrder, int beginStep,
2706 const Vector2d<std::string>& cells, bool overflow)
2707{
2708 const auto clipped = clipCellsToFitPastedArea(songStyle_.trackAttribs.size(), getPatternSizeFromOrderNumber(songNum, beginOrder),
2709 beginTrack, beginColmn, beginStep, cells, overflow);
2710 if (!clipped.isValid() || clipped.empty()) return false;
2711
2712 return comMan_.invoke(std::make_unique<PasteMixCopiedDataToPatternCommand>(
2713 mod_, songNum, beginTrack, beginColmn, beginOrder, beginStep, clipped));
2714}
2715
2716bool BambooTracker::pasteOverwritePatternCells(int songNum, int beginTrack, int beginColmn, int beginOrder,
2717 int beginStep, const Vector2d<std::string>& cells, bool overflow)

Callers 1

pasteMixCopiedCellsMethod · 0.80

Calls 5

clipCellsToFitPastedAreaFunction · 0.85
invokeMethod · 0.80
sizeMethod · 0.45
isValidMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected