< Summary

Class:CatalystEntitiesType
Assembly:CatalystInterfaces
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/ServiceProviders/Catalyst/Interfaces/CatalystTypes.cs
Covered lines:0
Uncovered lines:3
Coverable lines:3
Total lines:112
Line coverage:0% (0 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
CatalystEntitiesType()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/ServiceProviders/Catalyst/Interfaces/CatalystTypes.cs

#LineLine coverage
 1using System;
 2using UnityEngine;
 3
 4public static class CatalystEntitiesType
 5{
 06    public static readonly string SCENE = "scene";
 07    public static readonly string PROFILE = "profile";
 08    public static readonly string WEARABLE = "wearable";
 9}
 10
 11[Serializable]
 12public class CatalystEntityContent
 13{
 14    public string file;
 15    public string hash;
 16}
 17
 18[Serializable]
 19public class CatalystEntityBase
 20{
 21    public string id;
 22    public string type;
 23    public long timestamp;
 24    public string[] pointers;
 25    public CatalystEntityContent[] content;
 26}
 27
 28[Serializable]
 29public class CatalystSceneEntityPayload : CatalystEntityBase
 30{
 31    public CatalystSceneEntityMetadata metadata;
 32}
 33
 34[Serializable]
 35public class CatalystSceneEntityMetadata
 36{
 37    [Serializable]
 38    public class Display
 39    {
 40        public string title;
 41        public string description;
 42        public string navmapThumbnail;
 43    }
 44
 45    [Serializable]
 46    public class Contact
 47    {
 48        public string name;
 49    }
 50
 51    [Serializable]
 52    public class Scene
 53    {
 54        public string @base;
 55        public string[] parcels;
 56    }
 57
 58    [Serializable]
 59    public class Policy
 60    {
 61        public string contentRating;
 62        public bool fly;
 63        public bool voiceEnabled;
 64        public string[] blacklist;
 65    }
 66
 67    [Serializable]
 68    public class SpawnPoint
 69    {
 70        [Serializable]
 71        public class Vector3
 72        {
 73            public float x;
 74            public float y;
 75            public float z;
 76        }
 77
 78        public string name;
 79        public bool @default;
 80        public Vector3 position;
 81        public Vector3 cameraTarget;
 82    }
 83
 84    [Serializable]
 85    public class Source
 86    {
 87        [Serializable]
 88        public class Layout
 89        {
 90            public string rows;
 91            public string cols;
 92        }
 93
 94        public int version;
 95        public string origin;
 96        public string projectId;
 97        public Vector2Int point;
 98        public string rotation;
 99        public Layout layout;
 100        public bool isEmpty;
 101    }
 102
 103    public Display display;
 104    public Contact contact;
 105    public Scene scene;
 106    public Policy policy;
 107    public Source source;
 108    public SpawnPoint[] spawnPoints;
 109    public string owner;
 110    public string[] tags;
 111    public string[] requiredPermissions;
 112}

Methods/Properties

CatalystEntitiesType()