Brunot
Loading...
Searching...
No Matches
PublicLambdas.cpp File Reference
#include "PublicLambdas.h"
#include <numbers>
#include "Component/Button.h"
#include "Component/Transform.h"
#include "Framework/Engine.h"
#include "Messages/PlayAudioMessage.h"
#include "System/Messaging.h"
Include dependency graph for PublicLambdas.cpp:

Namespaces

namespace  sys
 the type of elements in a basic_json container

Functions

auto getButtonLambda (const std::string &lambdaName) -> std::function< void(Entity *)>
 Gets a function from a map that buttons can use for their select, highlight, and undo highlight.

Variables

static const std::unordered_map< std::string, std::function< void(Entity *)> > buttonLambdas

Function Documentation

◆ getButtonLambda()

auto getButtonLambda ( const std::string & lambdaName) ->std::function< void(Entity *)>

Gets a function from a map that buttons can use for their select, highlight, and undo highlight.

Parameters
lambdaNameThe name of the lambda that the user wants to get
Returns
The lambda that the user requested
Here is the caller graph for this function:

Variable Documentation

◆ buttonLambdas

const std::unordered_map<std::string, std::function<void(Entity*)> > buttonLambdas
static