![]() |
MAK Legion API Documentation
|
Contains a simple example to add custom attribute sets to the database. More...
Classes | |
| class | WriteEngineRepository |
| class | ReadEngineRepository |
Functions | |
| void | parseArgs (int argc, char **argv) |
| void | setMinMaxBoundary (int minX, int minY, int maxX, int maxY) |
| Legion::UInt32 | registerCustomAttributeSet () |
| void | initEntityAndEngineInstance (Legion::Vector3d &position, Legion::Vector3f &velocity, LOM::WriteEntityRepository &entity, WriteEngineRepository &theCustomSet) |
| void | shutDownHandler () |
| int | main (int argc, char *argv[]) |
Variables | |
| double | theFrameRate = 60 |
| int | MAX_GRID = 1000 |
| std::string | theConfigFile = "legionExamples.lua" |
| Legion::Configuration * | theConfiguration = nullptr |
| Legion::SimulationDatabase * | theSimDb = nullptr |
| Legion::Connection * | theConnection = nullptr |
| Legion::BoundarySpatialPlanar | theBounds |
| AttributeIndex | theRpmAttributeIndex |
| AttributeIndex | theTemperatureAttributeIndex |
| AttributeIndex | theIntTestAttributeIndex |
| AttributeIndex | theFloatTestAttributeIndex |
| AttributeSetId | theEngineAttributeSetId |
| LOM::WriteEntityRepository | theEntity |
| WriteEngineRepository | theEngine |
Contains a simple example to add custom attribute sets to the database.
| void initEntityAndEngineInstance | ( | Legion::Vector3d & | position, |
| Legion::Vector3f & | velocity, | ||
| LOM::WriteEntityRepository & | entity, | ||
| WriteEngineRepository & | theCustomSet | ||
| ) |
References WriteEngineRepository::setFloatTest(), WriteEngineRepository::setIntTest(), WriteEngineRepository::setRpm(), and WriteEngineRepository::setTemperature().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References Legion::SimulationDatabase::beginFrame(), Legion::SimulationDatabase::createInstance(), Legion::SimulationDatabase::endFrame(), initEntityAndEngineInstance(), Legion::Connection::isConnected(), MAX_GRID, parseArgs(), registerCustomAttributeSet(), Legion::Connection::setIntent(), Legion::Connection::setInterest(), setMinMaxBoundary(), shutDownHandler(), Legion::Connection::startProcessingMessages(), theConfigFile, theEngine, theEntity, theFrameRate, and Legion::Connection::waitUntilDoneProcessingMessages().
| void parseArgs | ( | int | argc, |
| char ** | argv | ||
| ) |
| UInt32 registerCustomAttributeSet | ( | ) |
References Legion::AttributeSetDescriptor::attributeDescriptors, Legion::AttributeSetDescriptor::attributeSetName, Legion::AttributeSetDescriptor::exptectedInstances, Legion::SimulationDatabase::findAttributeIndex(), Legion::Float, Legion::Int64, Legion::REFLECTED, Legion::SimulationDatabase::registerAttributeSet(), theEngineAttributeSetId, theFloatTestAttributeIndex, theIntTestAttributeIndex, theRpmAttributeIndex, theTemperatureAttributeIndex, and WriteEngineRepository::type().
Referenced by main().
| void setMinMaxBoundary | ( | int | minX, |
| int | minY, | ||
| int | maxX, | ||
| int | maxY | ||
| ) |
| void shutDownHandler | ( | ) |
| int MAX_GRID = 1000 |
| Legion::BoundarySpatialPlanar theBounds |
| std::string theConfigFile = "legionExamples.lua" |
| Legion::Configuration* theConfiguration = nullptr |
| Legion::Connection* theConnection = nullptr |
| WriteEngineRepository theEngine |
Referenced by main().
| AttributeSetId theEngineAttributeSetId |
Referenced by registerCustomAttributeSet(), WriteEngineRepository::type(), and ReadEngineRepository::type().
| LOM::WriteEntityRepository theEntity |
| AttributeIndex theFloatTestAttributeIndex |
| double theFrameRate = 60 |
| AttributeIndex theIntTestAttributeIndex |
| AttributeIndex theRpmAttributeIndex |
| Legion::SimulationDatabase* theSimDb = nullptr |
| AttributeIndex theTemperatureAttributeIndex |