< Summary

Class:DCL.Configuration.UISettings
Assembly:Configuration
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Configuration/Configuration.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:176
Line coverage:100% (1 of 1)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
UISettings()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Configuration/Configuration.cs

#LineLine coverage
 1using UnityEngine;
 2
 3namespace DCL.Configuration
 4{
 5    public static class BIWSettings
 6    {
 7        //Note: Don't use these URL directly, you need to get them in the BuilderInWorldUtils to take into account the E
 8        public const string BASE_URL_SCENE_OBJECT_CONTENT = "https://builder-api.decentraland.{ENV}/v1/storage/contents/
 9        public const string BASE_URL_CATALOG = "https://builder-api.decentraland.{ENV}/v1/assetPacks?owner=";
 10        public const string BASE_URL_ASSETS_PACK_CONTENT = "https://builder-api.decentraland.{ENV}/v1/storage/assetPacks
 11
 12        public static readonly LayerMask SELECTION_LAYER_INDEX = LayerMask.NameToLayer("Selection");
 13        public static readonly LayerMask DEFAULT_LAYER_INDEX = LayerMask.NameToLayer("Default");
 14        public static readonly LayerMask COLLIDER_SELECTION_LAYER_INDEX = LayerMask.NameToLayer("OnBuilderPointerClick")
 15
 16        public static readonly LayerMask SELECTION_LAYER = LayerMask.GetMask("Selection");
 17        public static readonly LayerMask COLLIDER_SELECTION_LAYER = LayerMask.GetMask("OnBuilderPointerClick");
 18        public static readonly LayerMask GIZMOS_LAYER = LayerMask.GetMask("Gizmo");
 19        public static readonly LayerMask GROUND_LAYER = LayerMask.GetMask("Ground");
 20
 21        public const string VOXEL_ASSETS_PACK_ID = "b51e5e7c-c56b-4ad9-b9d2-1dc1c6546169";
 22        public const string SMART_ITEM_ASSETS_PACK_ID = "07e7e010-3003-496d-a720-2a714a63a58b";
 23        public const string FLOOR_CATEGORY = "ground";
 24
 25        public const string CATALOG_ASSET_PACK_TITLE = "Asset Packs";
 26        public const string VOXEL_TAG = "Voxel";
 27        public const string CUSTOM_LAND = "CUSTOM LAND";
 28
 29        //Inputs
 30        public static float MOUSE_THRESHOLD_FOR_DRAG = 15f;
 31        public static float MOUSE_MS_DOUBLE_CLICK_THRESHOLD = 500f;
 32
 33        //Kernel Report
 34        public const string STATE_EVENT_NAME = "stateEvent";
 35        public const string SCENE_EVENT_NAME = "SceneEvent";
 36        public const string BIW_HEADER_REQUEST_EVENT_NAME = "RequestBIWCatalogHeader";
 37        public const string BIW_HEADER_REQUEST_WITH_PARAM_EVENT_NAME = "RequestHeaderForUrl";
 38        public static float ENTITY_POSITION_REPORTING_DELAY = 0.1f; // In seconds
 39        public static float ENTITY_POSITION_REPORTING_THRESHOLD = 0.04f; // In meters
 40        public static float ENTITY_SCALE_REPORTING_THRESHOLD = 0.04f; // In meters
 41        public static float ENTITY_ROTATION_REPORTING_THRESHOLD = 0.1f; // In degrees
 42
 43        //Floor Scene Object
 44        public const string FLOOR_ID = "c9b17021-765c-4d9a-9966-ce93a9c323d1";
 45        public const string FLOOR_MODEL = "FloorBaseGrass_01/FloorBaseGrass_01.glb";
 46        public const string FLOOR_NAME = "Floor";
 47        public const string FLOOR_ASSET_PACK_NAME = "Genesis City";
 48
 49        public const string FLOOR_GLTF_KEY = "FloorBaseGrass_01/FloorBaseGrass_01.glb";
 50        public const string FLOOR_GLTF_VALUE = "QmSyvWnb5nKCaGHw9oHLSkwywvS5NYpj6vgb8L121kWveS";
 51
 52        public const string FLOOR_TEXTURE_KEY = "FloorBaseGrass_01/Floor_Grass01.png.png";
 53        public const string FLOOR_TEXTURE_VALUE = "QmT1WfQPMBVhgwyxV5SfcfWivZ6hqMCT74nxdKXwyZBiXb";
 54
 55        //Collectables
 56        public const string ASSETS_COLLECTIBLES = "Collectibles";
 57        public const string COLLECTIBLE_MODEL_PROTOCOL = "ethereum://";
 58
 59        //Gizmos
 60        public const string TRANSLATE_GIZMO_NAME = "MOVE";
 61        public const string ROTATE_GIZMO_NAME = "ROTATE";
 62        public const string SCALE_GIZMO_NAME = "SCALE";
 63        public const string EMPTY_GIZMO_NAME = "NONE";
 64        public const float GIZMOS_RELATIVE_SCALE_RATIO = 0.06f;
 65
 66        //Publish
 67        public const string PUBLISH_MODAL_TITLE = "Publish Scene";
 68        public const string PUBLISH_MODAL_SUBTITLE = "Are you sure you want to publish your scene to this Land?";
 69        public const string PUBLISH_MODAL_CONFIRM_BUTTON = "PUBLISH";
 70        public const string PUBLISH_MODAL_CANCEL_BUTTON = "CANCEL";
 71        public const string EXIT_MODAL_TITLE = "Exiting Builder mode";
 72        public const string EXIT_MODAL_SUBTITLE = "Are you sure you want to exit Builder mode?";
 73        public const string EXIT_MODAL_CONFIRM_BUTTON = "EXIT";
 74        public const string EXIT_MODAL_CANCEL_BUTTON = "CANCEL";
 75        public const string EXIT_WITHOUT_PUBLISH_MODAL_SUBTITLE = "There are unpublished changes in this project. But do
 76        public const string EXIT_WITHOUT_PUBLISH_MODAL_CONFIRM_BUTTON = "GOT IT!";
 77        public const string EXIT_WITHOUT_PUBLISH_MODAL_CANCEL_BUTTON = "BACK";
 78
 79        //Others
 80        public const float RAYCAST_MAX_DISTANCE = 10000f;
 81        public const string LAND_EDITION_NOT_ALLOWED_BY_PERMISSIONS_MESSAGE = "This land does not belong to you, nor hav
 82        public const string LAND_EDITION_WAITING_FOR_PERMISSIONS_MESSAGE = "Checking if you have permission to edit this
 83        public const string LAND_EDITION_NOT_ALLOWED_BY_SDK_LIMITATION_MESSAGE = "This place was created with the SDK an
 84        public const float CACHE_TIME_LAND = 5 * 60;
 85        public const float CACHE_TIME_SCENES = 1 * 60;
 86        public const float REFRESH_LANDS_WITH_ACCESS_INTERVAL = 2 * 60;
 87        public const float LAND_NOTIFICATIONS_TIMER = 10f;
 88        public const float LAND_CHECK_MESSAGE_TIMER = 5f;
 89    }
 90
 91    public static class ApplicationSettings
 92    {
 93        public static string version = "1.0";
 94    }
 95
 96    public static class EnvironmentSettings
 97    {
 98        public static bool RUNNING_TESTS = false;
 99        public static bool DEBUG = true;
 100        public static readonly Vector3 MORDOR = new Vector3(10000, 10000, 10000);
 101        public static readonly int MORDOR_SCALAR = 10000;
 102        public const float UNINITIALIZED_FLOAT = 999999f;
 103    }
 104
 105    public static class InputSettings
 106    {
 107        public static KeyCode PrimaryButtonKeyCode = KeyCode.E;
 108        public static KeyCode SecondaryButtonKeyCode = KeyCode.F;
 109    }
 110
 111    public static class PlayerSettings
 112    {
 113        public static float POSITION_REPORTING_DELAY = 0.1f; // In seconds
 114        public static float WORLD_REPOSITION_MINIMUM_DISTANCE = 100f;
 115    }
 116
 117    public static class ParcelSettings
 118    {
 119        public static float DEBUG_FLOOR_HEIGHT = -0.1f;
 120        public static float PARCEL_SIZE = 16f;
 121        public static float PARCEL_BOUNDARIES_THRESHOLD = 0.01f;
 122        public static float UNLOAD_DISTANCE = PARCEL_SIZE * 12f;
 123        public static bool VISUAL_LOADING_ENABLED = true;
 124    }
 125
 126    public static class TestSettings
 127    {
 128        public static int VISUAL_TESTS_APPROVED_AFFINITY = 95;
 129        public static float VISUAL_TESTS_PIXELS_CHECK_THRESHOLD = 5.0f;
 130        public static int VISUAL_TESTS_SNAPSHOT_WIDTH = 1280;
 131        public static int VISUAL_TESTS_SNAPSHOT_HEIGHT = 720;
 132    }
 133
 134    public static class AssetManagerSettings
 135    {
 136        //When library item count gets above this threshold, unused items will get pruned on Get() method.
 137        public static int LIBRARY_CLEANUP_THRESHOLD = 10;
 138    }
 139
 140    public static class MessageThrottlingSettings
 141    {
 142        public static float SIXTY_FPS_TIME = 1.0f / 60.0f;
 143        public static float GLOBAL_FRAME_THROTTLING_TIME = SIXTY_FPS_TIME / 8.0f;
 144        public static float LOAD_PARCEL_SCENES_THROTTLING_TIME = SIXTY_FPS_TIME / 4.0f;
 145    }
 146
 147    public static class UISettings
 148    {
 1149        public static float RESERVED_CANVAS_TOP_PERCENTAGE = 10f;
 150    }
 151
 152    public static class NFTDataFetchingSettings
 153    {
 154        public static UnityEngine.Vector2
 155            NORMALIZED_DIMENSIONS =
 156                new UnityEngine.Vector2(512f, 512f); // The image dimensions that correspond to Vector3.One scale
 157
 158        public static string DAR_API_URL = "https://schema.decentraland.org/dar";
 159    }
 160
 161    public static class PhysicsLayers
 162    {
 163        public static int defaultLayer = LayerMask.NameToLayer("Default");
 164        public static int onPointerEventLayer = LayerMask.NameToLayer("OnPointerEvent");
 165        public static int characterLayer = LayerMask.NameToLayer("CharacterController");
 166        public static int characterOnlyLayer = LayerMask.NameToLayer("CharacterOnly");
 167        public static LayerMask physicsCastLayerMask = 1 << onPointerEventLayer;
 168
 169        public static LayerMask physicsCastLayerMaskWithoutCharacter = (physicsCastLayerMask | (1 << defaultLayer))
 170                                                                       & ~(1 << characterLayer)
 171                                                                       & ~(1 << characterOnlyLayer);
 172
 173        public static int friendsHUDPlayerMenu = LayerMask.NameToLayer("FriendsHUDPlayerMenu");
 174        public static int playerInfoCardMenu = LayerMask.NameToLayer("PlayerInfoCardMenu");
 175    }
 176}

Methods/Properties

UISettings()