您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
809 B
25 行
809 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace MLAgents
|
|
{
|
|
/** \brief An interface which defines the functions needed for a CoreBrain. */
|
|
/** There is no need to modify or implement CoreBrain to create a Unity environment.
|
|
*/
|
|
public interface CoreBrain
|
|
{
|
|
|
|
/// Implement setBrain so let the coreBrain know what brain is using it
|
|
void SetBrain(Brain b);
|
|
|
|
/// Implement this method to initialize CoreBrain
|
|
void InitializeCoreBrain(Batcher brainBatcher);
|
|
|
|
/// Implement this method to define the logic for deciding actions
|
|
void DecideAction(Dictionary<Agent, AgentInfo> agentInfo);
|
|
|
|
/// Implement this method to define what should be displayed in the brain Inspector
|
|
void OnInspector();
|
|
}
|
|
}
|