ClassDefinition simpleDef( "Vector" );
simpleDef.DeclareProperty( CDSP_PUBLIC, PTY_FLOAT, "x" );
simpleDef.DeclareProperty( CDSP_PUBLIC, PTY_FLOAT, "y" );
simpleDef.DeclareProperty( CDSP_PUBLIC, PTY_FLOAT, "z" );
Environment env;
env.RegisterClass( simpleDef );
ClassInstance *inst = env.CreateInstance( "Vector" );
inst->Property( "x" ).Set( 100.0f );
inst->Property( "y" ).Set( 200.0f );
std::cout << "x: " << inst->Property( "x" ).GetFloat();
std::cout << "y: " << inst->Property( "y" ).GetFloat();
std::cout << "z: " << inst->Property( "z" ).GetFloat();