|
|
|
|
|
|
/// This is deprecated. Agents can now use both continuous and discrete actions together.
|
|
|
|
/// </summary>
|
|
|
|
[Obsolete("Continuous and discrete actions on the same Agent are now supported; see ActionSpec.")] |
|
|
|
public enum SpaceType |
|
|
|
internal enum SpaceType |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Discrete action space: a fixed number of options are available.
|
|
|
|
|
|
|
/// </value>
|
|
|
|
[Obsolete("VectorActionSize has been deprecated, please use ActionSpec instead.")] |
|
|
|
[FormerlySerializedAs("vectorActionSize")] |
|
|
|
public int[] VectorActionSize = new[] { 1 }; |
|
|
|
internal int[] VectorActionSize = new[] { 1 }; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The list of strings describing what the actions correspond to.
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
[Obsolete("VectorActionSpaceType has been deprecated, please use ActionSpec instead.")] |
|
|
|
[FormerlySerializedAs("vectorActionSpaceType")] |
|
|
|
public SpaceType VectorActionSpaceType = SpaceType.Discrete; |
|
|
|
internal SpaceType VectorActionSpaceType = SpaceType.Discrete; |
|
|
|
|
|
|
|
[SerializeField] |
|
|
|
[HideInInspector] |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Propogate ActionSpec fields from deprecated fields
|
|
|
|
/// Propagate ActionSpec fields from deprecated fields
|
|
|
|
/// </summary>
|
|
|
|
private void UpdateToActionSpec() |
|
|
|
{ |
|
|
|