3 #include "scripting/luabind.h"
4 #include "engine/typedefs.h"
6 #include <boost/range/adaptor/map.hpp>
8 #include <unordered_map>
17 using BoostCompoundMapIterator = boost::range_detail::select_second_mutable_range<std::unordered_map<std::string, CompoundId>>;
18 using BoostAbsorbedMapIterator = boost::range_detail::select_first_range<std::unordered_map<CompoundId, float>>;
49 const std::string& filename
78 const std::string& internalName,
79 const std::string& displayName,
82 std::vector<std::pair<CompoundId, int>> inputCompounds,
83 std::vector<std::pair<CompoundId, int>> outputCompounds
135 const std::string& internalName
145 static const BoostCompoundMapIterator
148 static const std::vector<std::pair<CompoundId, int>>&
153 static const std::vector<std::pair<CompoundId, int>>&
static BioProcessId getId(const std::string &internalName)
Obtains the Id of an internal name corresponding to a registered process.
Definition: bio_process_registry.cpp:211
static std::string getDisplayName(BioProcessId id)
Obtains the display name of an compound.
Definition: bio_process_registry.cpp:173
Static abstract class keeping track of a predefined biological processes, their Id's, internal and displayed names as well as various data.
Definition: bio_process_registry.h:25
static std::string getInternalName(BioProcessId id)
Obtains the internal name of an compound.
Definition: bio_process_registry.cpp:183
Definition: bullet_to_ogre_system.h:5
static luabind::scope luaBindings()
Lua bindings.
Definition: bio_process_registry.cpp:14
Definition: bullet_ogre_conversion.h:6
static BioProcessId registerBioProcess(const std::string &internalName, const std::string &displayName, int energyCost, double speedFactor, std::vector< std::pair< CompoundId, int >> inputCompounds, std::vector< std::pair< CompoundId, int >> outputCompounds)
Registers a new process type.
Definition: bio_process_registry.cpp:146
static const BoostCompoundMapIterator getList()
Obtains the IDs of all currently registered concepts.
Definition: bio_process_registry.cpp:228