method
Reflect.prop_count
Reflect.prop_count() -> int
Returns the number of properties in the world — every declared property, plus any the runtime or a mod registered. Walk 0 .. Reflect.prop_count() with Reflect.prop_name to enumerate the whole schema.
Example
program Demo {
property Health { hp: int = 0 }
model Unit { Health }
entry {
print(Reflect.prop_count())
}
}