[Add] Synaptic AI Pro
https://assetstore.unity.com/packages/tools/generative-ai/synaptic-ai-pro-natural-language-control-for-unity-336030
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SynapticPro
|
||||
{
|
||||
/// <summary>
|
||||
/// Data class representing Unity operations
|
||||
/// Used for integration with MCP server and AI
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class NexusUnityOperation
|
||||
{
|
||||
public string id;
|
||||
public string type;
|
||||
public Dictionary<string, string> parameters;
|
||||
public string code;
|
||||
public string description;
|
||||
public List<string> dependencies;
|
||||
public OperationStatus status;
|
||||
|
||||
public enum OperationStatus
|
||||
{
|
||||
Pending,
|
||||
Executing,
|
||||
Completed,
|
||||
Failed,
|
||||
Skipped
|
||||
}
|
||||
|
||||
public NexusUnityOperation()
|
||||
{
|
||||
id = Guid.NewGuid().ToString();
|
||||
parameters = new Dictionary<string, string>();
|
||||
dependencies = new List<string>();
|
||||
status = OperationStatus.Pending;
|
||||
}
|
||||
|
||||
public NexusUnityOperation(string operationType) : this()
|
||||
{
|
||||
type = operationType;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class representing operation results
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class NexusOperationResult
|
||||
{
|
||||
public bool success;
|
||||
public string message;
|
||||
public string operationId;
|
||||
public object resultData;
|
||||
|
||||
public NexusOperationResult(string opId, bool isSuccess, string msg)
|
||||
{
|
||||
operationId = opId;
|
||||
success = isSuccess;
|
||||
message = msg;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user