// // Created by Sam Gondelman on 5/31/19 // Copyright 2019 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "ComponentMode.h" /*@jsdoc *

How an effect is applied in a {@link Entities.EntityProperties-Zone|Zone} entity.

* * * * * * * * * *
ValueDescription
"inherit"The effect from any enclosing zone continues into this zone.
"disabled"The effect — from any enclosing zone and this zone — is disabled in * this zone.
"enabled"The effect from this zone is enabled, overriding the effect from any enclosing * zone.
* @typedef {string} Entities.ComponentMode */ const char* componentModeNames[] = { "inherit", "disabled", "enabled" }; QString ComponentModeHelpers::getNameForComponentMode(ComponentMode mode) { if (((int)mode <= 0) || ((int)mode >= (int)COMPONENT_MODE_ITEM_COUNT)) { mode = (ComponentMode)0; } return componentModeNames[(int)mode]; } /*@jsdoc *

The priority of updates from avatars in a zone to other clients.

* * * * * * * * * *
ValueDescription
"inherit"The update priority from any enclosing zone continues into this zone.
"crowd"The update priority in this zone is the normal priority.
"hero"Avatars in this zone have an increased update priority.
* @typedef {string} Entities.AvatarPriorityMode */ const char* avatarPriorityModeNames[] = { "inherit", "crowd", "hero" }; QString AvatarPriorityModeHelpers::getNameForAvatarPriorityMode(AvatarPriorityMode mode) { if (((int)mode <= 0) || ((int)mode >= (int)AVATAR_PRIORITY_ITEM_COUNT)) { mode = (AvatarPriorityMode)0; } return avatarPriorityModeNames[(int)mode]; }