@@ -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": []
|
||||
}
|
||||
Reference in New Issue
Block a user