Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 3rd, 2012  |  syntax: None  |  size: 1.25 KB  |  hits: 13  |  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. //For Granting/Revoking Permissions Based on Entities
  2. virtual bool permissions_grant_view_access(std::shared_ptr<Entity> who);
  3. virtual bool permissions_revoke_view_access(std::shared_ptr<Entity> who);
  4. virtual bool permissions_grant_insert_access(std::shared_ptr<Entity> who);
  5. virtual bool permissions_revoke_insert_access(std::shared_ptr<Entity> who);
  6. virtual bool permissions_grant_removal_access(std::shared_ptr<Entity> who);
  7. virtual bool permissions_revoke_removal_access(std::shared_ptr<Entity> who);
  8.  
  9. //For Granting/Revoking Permissions Based on Traits instead of Entities (imperial, rebel, completed quest, ect)
  10. virtual bool permissions_grant_view_access_by_functor(std::function<bool(std::shared_ptr<Entity>)> functor);
  11. virtual bool permissions_revoke_view_access_by_functor(std::function<bool(std::shared_ptr<Entity>)> functor);
  12. virtual bool permissions_grant_insert_access_by_functor(std::function<bool(std::shared_ptr<Entity>)> functor);
  13. virtual bool permissions_revoke_insert_access_by_functor(std::function<bool(std::shared_ptr<Entity>)> functor);
  14. virtual bool permissions_grant_removal_access_by_functor(std::function<bool(std::shared_ptr<Entity>)> functor);
  15. virtual bool permissions_revoke_removal_access_by_functor(std::function<bool(std::shared_ptr<Entity>)> functor);