Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 2nd, 2013  |  syntax: C++  |  size: 0.35 KB  |  views: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data