27 lines
629 B
C#
27 lines
629 B
C#
using LLM.Facts;
|
|
using UnityEngine;
|
|
|
|
namespace LLM.Facts
|
|
{
|
|
public class FactOperationBehaviour : MonoBehaviour
|
|
{
|
|
[SerializeField] private FactOperationType type = FactOperationType.Add;
|
|
[SerializeField] private string key;
|
|
[TextArea]
|
|
[SerializeField] private string value;
|
|
[SerializeField] private string source = "Event";
|
|
|
|
public FactOperation ToOperation()
|
|
{
|
|
return new FactOperation
|
|
{
|
|
type = type,
|
|
key = key,
|
|
value = value,
|
|
source = source
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|