reactive_graph_std_arithmetic_model/component/
arithmetic_operation.rs1use crate::NAMESPACE_ARITHMETIC;
2use reactive_graph_graph::component_ty;
3use reactive_graph_graph::properties;
4use reactive_graph_reactive_model_api::entity_model;
5
6properties!(ArithmeticOperationProperties, (LHS, "lhs", false), (RESULT, "result", false));
7
8component_ty!(
9 COMPONENT_ARITHMETIC_OPERATION,
10 NAMESPACE_ARITHMETIC,
11 COMPONENT_NAME_ARITHMETIC_OPERATION,
12 "arithmetic_operation"
13);
14
15entity_model!(ArithmeticOperationF64, get result f64, set lhs f64);
16entity_model!(ArithmeticOperationI64, get result i64, set lhs i64);
17entity_model!(ArithmeticOperationU64, get result u64, set lhs u64);