< Summary

Class:DCL.ECS7.InternalComponents.InternalMaterial
Assembly:ECS7Plugin.InternalECSComponents.Interfaces
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/InternalECSComponents/Interfaces/InternalECSComponentModels.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:107
Line coverage:100% (1 of 1)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/InternalECSComponents/Interfaces/InternalECSComponentModels.cs

#LineLine coverage
 1using DCL.Components.Video.Plugin;
 2using System.Collections.Generic;
 3using DCL.ECSComponents;
 4using System;
 5using UnityEngine;
 6using UnityEngine.UIElements;
 7using RaycastHit = DCL.ECSComponents.RaycastHit;
 8
 9namespace DCL.ECS7.InternalComponents
 10{
 11    public class InternalComponent
 12    {
 13        public bool dirty => _dirty;
 14        internal bool _dirty = true;
 15    }
 16
 17    public class InternalTexturizable : InternalComponent
 18    {
 19        public IList<Renderer> renderers = new List<Renderer>();
 20    }
 21
 22    public class InternalMaterial : InternalComponent
 23    {
 24        public Material material = null;
 2925        public bool castShadows = true;
 26    }
 27
 28    public class InternalVideoMaterial : InternalComponent
 29    {
 30        public readonly struct VideoTextureData
 31        {
 32            public readonly long videoId;
 33            public readonly int textureType;
 34
 35            public VideoTextureData(long videoId, int textureType)
 36            {
 37                this.videoId = videoId;
 38                this.textureType = textureType;
 39            }
 40        }
 41
 42        public Material material = null;
 43        public IList<VideoTextureData> videoTextureDatas;
 44    }
 45
 46    public class InternalVideoPlayer : InternalComponent
 47    {
 48        public readonly struct MaterialAssigned
 49        {
 50            public readonly Material material;
 51            public readonly int textureType;
 52
 53            public MaterialAssigned(Material material, int textureType)
 54            {
 55                this.material = material;
 56                this.textureType = textureType;
 57            }
 58        }
 59
 60        public WebVideoPlayer videoPlayer = null;
 61        public IList<MaterialAssigned> assignedMaterials;
 62    }
 63
 64    public class InternalColliders : InternalComponent
 65    {
 66        public IList<Collider> colliders = new List<Collider>();
 67    }
 68
 69    public class InternalRenderers : InternalComponent
 70    {
 71        public IList<Renderer> renderers = new List<Renderer>();
 72    }
 73
 74    public class InternalVisibility : InternalComponent
 75    {
 76        public bool visible = true;
 77    }
 78
 79    public class InternalInputEventResults : InternalComponent
 80    {
 81        public class EventData
 82        {
 83            public InputAction button;
 84            public RaycastHit hit;
 85            public PointerEventType type;
 86            public int timestamp;
 87        }
 88
 89        public Queue<EventData> events;
 90        public int lastTimestamp;
 91    }
 92
 93    public class InternalUiContainer : InternalComponent
 94    {
 95        public readonly VisualElement rootElement = new VisualElement();
 96        public readonly HashSet<int> components = new HashSet<int>();
 97        public VisualElement parentElement;
 98        public long parentId;
 99        public long rigthOf;
 100        public bool shouldSort;
 101
 102        public InternalUiContainer(long entityId)
 103        {
 104            rootElement.name += $"(Id: {entityId})";
 105        }
 106    }
 107}

Methods/Properties

InternalMaterial()