FIRST
CI / Go Backend (push) Canceled after 0s

This commit is contained in:
xyou
2026-08-07 23:39:47 +08:00
parent f2105bf14c
commit 9500c4c80a
52 changed files with 3801 additions and 0 deletions
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
namespace RedCircuit.Components
{
/// <summary>元件数据定义,描述元件类型、朝向、可调属性与通电状态。</summary>
[Serializable]
public class ComponentData
{
public string id;
public string type;
public int x;
public int y;
public int rotation;
public Dictionary<string, int> properties = new();
public bool isPowered;
}
}
@@ -0,0 +1,9 @@
using UnityEngine;
namespace RedCircuit.Components
{
/// <summary>元件注册表,管理 80 种元件的数据定义与图标映射。</summary>
public class ComponentRegistry : MonoBehaviour
{
}
}
@@ -0,0 +1,9 @@
using UnityEngine;
namespace RedCircuit.Components
{
/// <summary>放置控制器,处理元件拖放放置、删除、旋转操作。</summary>
public class PlacementController : MonoBehaviour
{
}
}
@@ -0,0 +1,10 @@
{
"name": "RedCircuit.Components",
"rootNamespace": "RedCircuit.Components",
"references": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"autoReferenced": true,
"defineConstraints": []
}