SHARE
TWEET

Untitled

a guest Oct 2nd, 2013 37 Never
  1. void RenderingSystem::attachController(unsigned int EntityKey, EntityID entity)
  2. {
  3.         // layer is an enum/int
  4.         auto layer = mProperties.get<P::Visible>(entity)->layer;
  5.         auto controller = new RenderingController(entity, mProperties);
  6.         // mControllers is an array of maps
  7.         mControllers[layer][EntityKey] = std::unique_ptr<RenderingController>(controller);
  8. }
RAW Paste Data
Top