Skip to main content

shape_runtime/metadata/
properties.rs

1//! Property metadata for simulation contexts and other types
2
3use super::types::PropertyInfo;
4
5/// Simulation context properties (available in @simulation functions via `ctx` parameter)
6pub fn simulation_context_properties() -> Vec<PropertyInfo> {
7    vec![
8        PropertyInfo {
9            name: "index".to_string(),
10            property_type: "Number".to_string(),
11            description: "Current element index in the simulation".to_string(),
12        },
13        PropertyInfo {
14            name: "state".to_string(),
15            property_type: "Any".to_string(),
16            description: "Current simulation state".to_string(),
17        },
18        PropertyInfo {
19            name: "metadata".to_string(),
20            property_type: "Object".to_string(),
21            description: "Additional simulation metadata".to_string(),
22        },
23    ]
24}