Brunot
Loading...
Searching...
No Matches
PublicLambdas.h
Go to the documentation of this file.
1
10// ____ __ __ __
11// /\__ _\/\ \ /\ \/\ \
12// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
13// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
14// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
15// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
16// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
17
18
19#pragma once
20#include <functional>
21#include <string>
22
23class Entity;
24
25
31auto getButtonLambda(const std::string& lambdaName) -> std::function<void(Entity*)>;
32
38auto getEasingFunction(const std::string& functionName) -> std::function<float(float,float)>;
auto getEasingFunction(const std::string &functionName) -> std::function< float(float, float)>
Gets an easing function (examples: https://easings.net/) from a map.
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.
Definition PublicLambdas.cpp:162
Definition Entity.h:41