MAK Legion API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Functions | Variables
customAttributeSet.cxx File Reference

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::ConfigurationtheConfiguration = nullptr
 
Legion::SimulationDatabasetheSimDb = nullptr
 
Legion::ConnectiontheConnection = nullptr
 
Legion::BoundarySpatialPlanar theBounds
 
AttributeIndex theRpmAttributeIndex
 
AttributeIndex theTemperatureAttributeIndex
 
AttributeIndex theIntTestAttributeIndex
 
AttributeIndex theFloatTestAttributeIndex
 
AttributeSetId theEngineAttributeSetId
 
LOM::WriteEntityRepository theEntity
 
WriteEngineRepository theEngine
 

Detailed Description

Contains a simple example to add custom attribute sets to the database.

Function Documentation

void initEntityAndEngineInstance ( Legion::Vector3d position,
Legion::Vector3f velocity,
LOM::WriteEntityRepository &  entity,
WriteEngineRepository theCustomSet 
)
int main ( int  argc,
char *  argv[] 
)
void parseArgs ( int  argc,
char **  argv 
)
UInt32 registerCustomAttributeSet ( )
void setMinMaxBoundary ( int  minX,
int  minY,
int  maxX,
int  maxY 
)
void shutDownHandler ( )

Variable Documentation

int MAX_GRID = 1000
std::string theConfigFile = "legionExamples.lua"
Legion::Configuration* theConfiguration = nullptr
Legion::Connection* theConnection = nullptr

Referenced by main().

AttributeSetId theEngineAttributeSetId
LOM::WriteEntityRepository theEntity
AttributeIndex theFloatTestAttributeIndex
double theFrameRate = 60
AttributeIndex theIntTestAttributeIndex
AttributeIndex theRpmAttributeIndex
Legion::SimulationDatabase* theSimDb = nullptr
AttributeIndex theTemperatureAttributeIndex

Document ID: Generated on Mon Mar 8 15:11:30 EST 2021 from SVN revision 225633
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)