(C++)
1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
The Prefab class - responsible for producing contexts and instances of data used by UtilityReasoner. More...
#include <Prefab.hh>
Public Member Functions | |
Prefab (std::string name, std::function< std::vector< ContexType >(const DataType &)> contextProducer, std::function< std::unique_ptr< InstanceType >(const ContexType &)> instanceProducer) | |
Prefab - Contructor. More... | |
Prefab (const Prefab &other)=default | |
Prefab (Prefab &&other)=default | |
Prefab & | operator= (const Prefab &other)=delete |
Prefab & | operator= (Prefab &&other)=delete |
std::vector< ContexType > | ProduceContexts (const DataType &data) const |
std::unique_ptr< InstanceType > | ProduceInstance (const ContexType &context) const |
std::string | GetName () const |
The Prefab class - responsible for producing contexts and instances of data used by UtilityReasoner.
|
inline |
Prefab - Contructor.
name | - name of the prefab |
contextProducer | - callable responsible for producing vector of contexts |
instanceProducer | - callable responsible for producing instance of data based on provided context |