const ActionSet User::getActionsForResource(const ResourcePattern& resource) const { stdx::unordered_map<ResourcePattern, Privilege>::const_iterator it = _privileges.find(resource); if (it == _privileges.end()) { return ActionSet(); } return it->second.getActions(); }
const ActionSet User::getActionsForResource(const std::string& resource) const { unordered_map<string, Privilege>::const_iterator it = _privileges.find(resource); if (it == _privileges.end()) { return ActionSet(); } return it->second.getActions(); }
ActionSet NpcNormal::startAction(){ return ActionSet(); }