using System; using System.Collections.Generic; namespace RedCircuit.Components { /// 元件数据定义,描述元件类型、朝向、可调属性与通电状态。 [Serializable] public class ComponentData { public string id; public string type; public int x; public int y; public int rotation; public Dictionary properties = new(); public bool isPowered; } }