View Source mix ecsx.gen.component (ECSx v0.5.1)
Generates a new Component type for an ECSx application.
$ mix ecsx.gen.component Height integer
The first argument is the name of the component, followed by the data type of the value.
Valid types for the component's value are:
- atom
- binary
- datetime
- float
- integer
If you know you want components of this type to be indexed for improved ECSx.Component.search/1
performance,
you may include the --index
option:
$ mix ecsx.gen.component Name binary --index