Exemplo n.º 1
0
//----------------------------------------------------------------//
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;
}
Exemplo n.º 2
0
//----------------------------------------------------------------//
bool MOAIScriptNode::ApplyAttrOp ( u32 attrID, USAttrOp& attrOp ) {

	if ( attrID < this->mAttributes.Size ()) {
		this->mAttributes [ attrID ] = attrOp.Op ( this->mAttributes [ attrID ]);
		return true;
	}
	return false;
}