clecs.system
system
(system s)Create a system.
Takes a map with the following elements:
- :name
- A keyword to refer to this system later.
- :process
- Namespaced symbol of the system’s function. If
:process-fnis provided, :process can be omitted. However the system won’t be serializable in this case. - :process-fn
- System’s function itself.
:process-fnwill be resolved automatically if:processis provided. - :reads
- Components this system will read.
- :writes
- Components this system will read and write.
Components not specified in either :reads or :writes won’t be accessible to the system.