| | 1 | | using System.Collections; |
| | 2 | | using DCL.Configuration; |
| | 3 | |
|
| | 4 | | namespace 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 | | { |
| 0 | 36 | | public int amount = 1; |
| 0 | 37 | | public float xCoord = EnvironmentSettings.UNINITIALIZED_FLOAT; |
| 0 | 38 | | public float yCoord = EnvironmentSettings.UNINITIALIZED_FLOAT; |
| 0 | 39 | | public float areaWidth = ParcelSettings.PARCEL_SIZE; |
| 0 | 40 | | public float areaDepth = ParcelSettings.PARCEL_SIZE; |
| | 41 | |
|
| | 42 | | public override string ToString() |
| | 43 | | { |
| 0 | 44 | | return $"amount: {amount}" + |
| | 45 | | $"\n xCoord: {xCoord}" + |
| | 46 | | $"\n yCoord: {yCoord}" + |
| | 47 | | $"\n areaWidth: {areaWidth}" + |
| | 48 | | $"\n areaDepth: {areaDepth}"; |
| | 49 | | } |
| | 50 | | } |
| | 51 | | } |