MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CopySection

Method CopySection

engine/Poseidon/UI/Controls/UIControlsExt.cpp:1777–1797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1775 (int)item.context, stack.Size());
1776 }
1777
1778 for (int i = 0; i < _sections.Size(); i++)
1779 {
1780 _sections[i].fields.Compact();
1781 _sections[i].names.Compact();
1782 _sections[i].rows.Compact();
1783 }
1784 _sections.Compact();
1785 _bookmarks.Compact();
1786}
1787
1788void CHTMLContainer::RemoveSection(int s)
1789{
1790 _sections.Delete(s);
1791}
1792
1793void CHTMLContainer::CopySection(int from, int to)
1794{
1795 if (from < 0 || from >= _sections.Size())
1796 {
1797 return;
1798 }
1799 if (to < 0 || to >= _sections.Size())
1800 {

Callers 3

CreateDebriefingMethod · 0.80
AddObjectiveFunction · 0.80
UpdatePlanMethod · 0.80

Calls 2

SizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected