|
|
|
|
|
|
|
|
|
|
namespace MLAgents |
|
|
|
{ |
|
|
|
public struct CommunicatorInitParameters |
|
|
|
internal struct CommunicatorInitParameters |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Port to listen for connections on.
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public string version; |
|
|
|
} |
|
|
|
public struct UnityRLInitParameters |
|
|
|
internal struct UnityRLInitParameters |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// An RNG seed sent from the python process to Unity.
|
|
|
|
|
|
|
public struct UnityRLInputParameters |
|
|
|
internal struct UnityRLInputParameters |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Boolean sent back from python to indicate whether or not training is happening.
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Delegate for handling quite events sent back from the communicator.
|
|
|
|
/// </summary>
|
|
|
|
public delegate void QuitCommandHandler(); |
|
|
|
internal delegate void QuitCommandHandler(); |
|
|
|
public delegate void ResetCommandHandler(); |
|
|
|
internal delegate void ResetCommandHandler(); |
|
|
|
public delegate void RLInputReceivedHandler(UnityRLInputParameters inputParams); |
|
|
|
internal delegate void RLInputReceivedHandler(UnityRLInputParameters inputParams); |
|
|
|
|
|
|
|
/** |
|
|
|
This is the interface of the Communicators. |
|
|
|