< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
WorldPosInstantiationConfig()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    {
 016        public int amount = 1;
 017        public float xPos = EnvironmentSettings.UNINITIALIZED_FLOAT;
 018        public float yPos = EnvironmentSettings.UNINITIALIZED_FLOAT;
 019        public float zPos = EnvironmentSettings.UNINITIALIZED_FLOAT;
 20        public float areaWidth = 0;
 21        public float areaDepth = 0;
 22
 23        public override string ToString()
 24        {
 025            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    {
 36        public int amount = 1;
 37        public float xCoord = EnvironmentSettings.UNINITIALIZED_FLOAT;
 38        public float yCoord = EnvironmentSettings.UNINITIALIZED_FLOAT;
 39        public float areaWidth = ParcelSettings.PARCEL_SIZE;
 40        public float areaDepth = ParcelSettings.PARCEL_SIZE;
 41
 42        public override string ToString()
 43        {
 44            return $"amount: {amount}" +
 45                   $"\n xCoord: {xCoord}" +
 46                   $"\n yCoord: {yCoord}" +
 47                   $"\n areaWidth: {areaWidth}" +
 48                   $"\n areaDepth: {areaDepth}";
 49        }
 50    }
 51}