package Ġcom . game . qu illy jump er . ecs . component Ċ Ċ import Ġcom . badlogic . ash ley . core . Component Ċ import Ġcom . badlogic . ash ley . core . Entity Ċ import Ġcom . badlogic . gdx . utils . Pool Ċ import Ġcom . game . qu illy jump er . configuration . Character Ċ import Ġk tx . ash ley . get Ċ import Ġk tx . ash ley . mapper For Ċ Ċ class ĠCharacter Type Component ( var Ġtype : ĠCharacter Ġ= ĠCharacter . PLAYER ) Ġ: ĠComponent , ĠPool . Pool able Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmapper Ġ= Ġmapper For < Character Type Component >() ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġreset () Ġ{ ĊĠĠĠĠĠĠĠ Ġtype Ġ= ĠCharacter . PLAYER ĊĠĠĠ Ġ} Ċ } Ċ Ċ val ĠEntity . character Cmp : ĠCharacter Type Component ĊĠĠĠ Ġget () Ġ= Ġthis [ Character Type Component . mapper ] ĊĠĠĠĠĠĠĠ Ġ?: Ġthrow ĠKotlin NullPointerException (" Trying Ġto Ġaccess Ġa Ġcharacter Ġtype Ġcomponent Ġwhich Ġis Ġnull ") Ċ