//----------------------------------------------------------------// bool MOAIAnimCurve::ApplyAttrOp ( u32 attrID, USAttrOp& attrOp ) { if ( MOAIAnimCurveAttr::Check ( attrID )) { switch ( UNPACK_ATTR ( attrID )) { case ATTR_TIME: this->mTime = attrOp.Op ( this->mTime ); return true; case ATTR_VALUE: attrOp.Op ( this->mValue ); return true; } } return false; }
//----------------------------------------------------------------// bool MOAIScriptNode::ApplyAttrOp ( u32 attrID, USAttrOp& attrOp ) { if ( attrID < this->mAttributes.Size ()) { this->mAttributes [ attrID ] = attrOp.Op ( this->mAttributes [ attrID ]); return true; } return false; }