-
Notifications
You must be signed in to change notification settings - Fork 114
IntellIJ Live Template for ComponentMapper
Mykola Zekter edited this page Oct 2, 2015
·
3 revisions
If you are using IntellIJ you can avoid a lot of typing! Create a live template called 'cm' with the following contents:
protected ComponentMapper<$ELEMENT_TYPE$> m$ELEMENT_TYPE$;$END$
To use it, type cm <tab>
in your System class.
Now you can simply type the component class and voila!
If you prefer your mappers to be named ComponentMapper<Type> <type>Mapper
, e.g. ComponentMapper<Position> positionMapper
, use the following template:
- Abbreviation: amap
- Description: creates a component mapper field
-
Template Text:
private com.artemis.ComponentMapper<$COMPONENT$> $CAMEL_COMPONENT$Mapper;$END$
- With the following variable definitions:
- Overview
- Concepts
- Getting Started
- Using
- More guides
- Plugins
- Game Gallery
- Tools and Frameworks
- API reference