XJ music engine  1.9.6
In-game runtime engine for XJ music.
Public Member Functions | List of all members
XJ::Craft::LambdaChoiceIndexProvider Class Reference

#include <Craft.h>

Inheritance diagram for XJ::Craft::LambdaChoiceIndexProvider:
XJ::Craft::ChoiceIndexProvider

Public Member Functions

 LambdaChoiceIndexProvider (std::function< std::string(SegmentChoice)> func)
 
std::string get (const SegmentChoice *choice) override
 
- Public Member Functions inherited from XJ::Craft::ChoiceIndexProvider
virtual ~ChoiceIndexProvider ()=default
 

Detailed Description

Lambda choiceIndex provider to create an choiceIndex provider from a lambda

Constructor & Destructor Documentation

◆ LambdaChoiceIndexProvider()

XJ::Craft::LambdaChoiceIndexProvider::LambdaChoiceIndexProvider ( std::function< std::string(SegmentChoice)>  func)
inlineexplicit

Member Function Documentation

◆ get()

std::string XJ::Craft::LambdaChoiceIndexProvider::get ( const SegmentChoice choice)
inlineoverridevirtual

This is the default implementation of the ChoiceIndexProvider interface. It should be replaced by a custom Lambda implementation when used

Reimplemented from XJ::Craft::ChoiceIndexProvider.


The documentation for this class was generated from the following file: