< Summary

Class:DCLVisibleOnEdit
Assembly:DCL.Components.Builder
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/BuilderInWorld/DCLVisibleOnEdit.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:33
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetDataFromJSON(...)0%2100%
DCLVisibleOnEdit()0%2100%
GetClassId()0%2100%
ApplyChanges(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/BuilderInWorld/DCLVisibleOnEdit.cs

#LineLine coverage
 1using DCL;
 2using DCL.Components;
 3using DCL.Controllers;
 4using DCL.Helpers;
 5using DCL.Models;
 6using System.Collections;
 7using System.Collections.Generic;
 8using UnityEngine;
 9
 10/// <summary>
 11/// This component describes the visibility of the Entity in the builder in world.
 12/// Builder in World send a message to kernel to change the value of this component in order to show/hide it
 13/// </summary>
 14public class DCLVisibleOnEdit : BaseDisposable
 15{
 16    [System.Serializable]
 17    public class Model : BaseModel
 18    {
 19        public bool isVisible;
 20
 021        public override BaseModel GetDataFromJSON(string json) { return Utils.SafeFromJson<Model>(json); }
 22    }
 23
 024    public DCLVisibleOnEdit() { model = new Model(); }
 25
 026    public override int GetClassId() { return (int) CLASS_ID.VISIBLE_ON_EDIT; }
 27
 28    public override IEnumerator ApplyChanges(BaseModel newModel)
 29    {
 030        RaiseOnAppliedChanges();
 031        return null;
 32    }
 33}