This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/simulation/ToolClasses.cpp
2020-01-09 19:22:11 +01:00

20 lines
263 B
C++

#include "ToolClasses.h"
std::vector<SimTool> const &GetTools()
{
struct DoOnce
{
std::vector<SimTool> tools;
DoOnce()
{
#define TOOL_NUMBERS_CALL
#include "ToolNumbers.h"
#undef TOOL_NUMBERS_CALL
}
};
static DoOnce doOnce;
return doOnce.tools;
}