shared/CEntity.js
function CEntity(indexes, properties, states) {
  CArray.call(this, indexes, properties);
  this.states = {} || states;
  this.uid = 0;
}
function CEntity(indexes, properties, states) {
  CArray.call(this, indexes, properties);
  this.states = {} || states;
  this.uid = 0;
}
function CEntity ( indexes , properties , states ) { CArray . call ( this , indexes , properties ) ; this . states = { } || states ; this . uid = 0 ; }
when declared in a State, the state will add itself and the declared name for this CArray as properties to the CEntity object.
when declared in a State the state will add itself and the declared name for this CArray as properties to the CEntity object .