add_to_property_registry

Function add_to_property_registry 

Source
pub fn add_to_property_registry<E: Entity, P: Property<E>>()
Expand description

Adds a new item to the registry. The job of this method is to create whatever “singleton” data/metadata is associated with the crate::entity::property::Property if it doesn’t already exist. In our use case, this method is called in the ctor function of each Property<E> type.