< Summary

Class:DCL.Bots.CoordsInstantiationConfig
Assembly:BotsControllerInterface
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/BotsController/Interface/IBotsController.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:51
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/BotsController/Interface/IBotsController.cs

#LineLine coverage
 1using System.Collections;
 2using DCL.Configuration;
 3
 4namespace DCL.Bots
 5{
 6    public interface IBotsController
 7    {
 8        IEnumerator InstantiateBotsAtWorldPos(WorldPosInstantiationConfig config);
 9        IEnumerator InstantiateBotsAtCoords(CoordsInstantiationConfig config);
 10        void ClearBots();
 11        void RemoveBot(string targetEntityId);
 12    }
 13
 14    public class WorldPosInstantiationConfig
 15    {
 16        public int amount = 1;
 17        public float xPos = EnvironmentSettings.UNINITIALIZED_FLOAT;
 18        public float yPos = EnvironmentSettings.UNINITIALIZED_FLOAT;
 19        public float zPos = EnvironmentSettings.UNINITIALIZED_FLOAT;
 20        public float areaWidth = 0;
 21        public float areaDepth = 0;
 22
 23        public override string ToString()
 24        {
 25            return $"amount: {amount}" +
 26                   $"\n xPos: {xPos}" +
 27                   $"\n yPos: {yPos}" +
 28                   $"\n zPos: {zPos}" +
 29                   $"\n areaWidth: {areaWidth}" +
 30                   $"\n areaDepth: {areaDepth}";
 31        }
 32    }
 33
 34    public class CoordsInstantiationConfig
 35    {
 036        public int amount = 1;
 037        public float xCoord = EnvironmentSettings.UNINITIALIZED_FLOAT;
 038        public float yCoord = EnvironmentSettings.UNINITIALIZED_FLOAT;
 039        public float areaWidth = ParcelSettings.PARCEL_SIZE;
 040        public float areaDepth = ParcelSettings.PARCEL_SIZE;
 41
 42        public override string ToString()
 43        {
 044            return $"amount: {amount}" +
 45                   $"\n xCoord: {xCoord}" +
 46                   $"\n yCoord: {yCoord}" +
 47                   $"\n areaWidth: {areaWidth}" +
 48                   $"\n areaDepth: {areaDepth}";
 49        }
 50    }
 51}