reactive_graph_std_arithmetic_model/component/
arithmetic_gate.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!(ArithmeticGateProperties, (LHS, "lhs", false), (RHS, "rhs", false), (RESULT, "result", false));
7
8component_ty!(COMPONENT_ARITHMETIC_GATE, NAMESPACE_ARITHMETIC, COMPONENT_NAME_ARITHMETIC_GATE, "arithmetic_gate");
9
10entity_model!(ArithmeticGateF64, get result f64, set lhs f64, set rhs f64);
11entity_model!(ArithmeticGateI64, get result i64, set lhs i64, set rhs i64);
12entity_model!(ArithmeticGateU64, get result u64, set lhs u64, set rhs u64);