예제 #1
0
파일: wbpeor.cpp 프로젝트: ptitSeb/Eldritch
void WBPEOR::Evaluate(const WBParamEvaluator::SPEContext& Context,
                      WBParamEvaluator::SEvaluatedParam& EvaluatedParam) const {
    WBParamEvaluator::SEvaluatedParam ValueA;
    m_InputA->Evaluate(Context, ValueA);

    WBParamEvaluator::SEvaluatedParam ValueB;
    m_InputB->Evaluate(Context, ValueB);

    EvaluatedParam.m_Type = WBParamEvaluator::EPT_Bool;
    EvaluatedParam.m_Bool = ValueA.GetBool() || ValueB.GetBool();
}
예제 #2
0
void WBPENOT::Evaluate( const WBParamEvaluator::SPEContext& Context, WBParamEvaluator::SEvaluatedParam& EvaluatedParam ) const
{
	WBParamEvaluator::SEvaluatedParam Value;
	m_Input->Evaluate( Context, Value );

	EvaluatedParam.m_Type = WBParamEvaluator::EPT_Bool;
	EvaluatedParam.m_Bool = !Value.GetBool();
}