< Summary

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

Metrics

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

Methods/Properties

ParcelSettings()