1101下午

This commit is contained in:
huqibin 2024-11-01 13:58:07 +08:00
parent 0e0871f1eb
commit 78f349495d
3 changed files with 53 additions and 11 deletions

View File

@ -77,6 +77,12 @@ public class Device_Control_6001 : Device_Control
public DeviceTrigger door_seal_trigger;
#endregion
private void Start()
{
Init();
base.hasInit = true;
}
private void Awake()
{
//设置控制脚本

View File

@ -25,7 +25,7 @@ public class Score_6001 : ScoreBase
/// <summary>
/// 现场场景中的特殊物体控制
/// </summary>
private Device_Control_6001 device_Control;
private new Device_Control_6001 device_Control;
/// <summary>
/// 初始化,有配置用配置的分数,没有使用默认的分数
@ -77,6 +77,7 @@ public class Score_6001 : ScoreBase
public override void SetDeviceControl(Device_Control device_Control)
{
base.SetDeviceControl(device_Control);
this.device_Control = (Device_Control_6001)device_Control;
}
/// <summary>
@ -365,14 +366,14 @@ public class Score_6001 : ScoreBase
/// <exception cref="System.NotImplementedException"></exception>
public override string SaveSceneBufferList()
{
BufferTemp_6001 tmp = new BufferTemp_6001();
tmp.TestPen3list = TestPen3list;
tmp.InSwitchCloseYDList = InSwitchCloseYDList;
tmp.InSwitchOpenYDList = InSwitchOpenYDList;
tmp.currentunInstallJieXian = currentunInstallJieXian;
tmp.currentInstallJieXian = currentInstallJieXian;
tmp.installCover = installCover;
tmp.currentInstallTestJieXian = currentInstallTestJieXian;
BufferTemp_6001 tmp = new BufferTemp_6001();
tmp.TestPen3list = TestPen3list;
tmp.InSwitchCloseYDList = InSwitchCloseYDList;
tmp.InSwitchOpenYDList = InSwitchOpenYDList;
tmp.currentunInstallJieXian = currentunInstallJieXian;
tmp.currentInstallJieXian = currentInstallJieXian;
tmp.installCover = installCover;
tmp.currentInstallTestJieXian = currentInstallTestJieXian;
string sceneInfo = JsonConvert.SerializeObject(tmp, Formatting.Indented);
return sceneInfo;
//throw new System.NotImplementedException();

View File

@ -1,4 +1,39 @@
{
"FaultDevice": "",
"dataFaultType": [ ]
"FaultDevice": "电能表",
"FaultDeviceShow": false,
"FaultTypeShow": false,
"FaultSituationL1Show": false,
"FaultSituationL2Show": true,
"dataFaultType": [
{
"name": "111",
"dataFaultSituationL1": [
{
"name": "2222",
"dataFaultSituationL2": [
{
"L2name": "异常采样",
"L2Limitation": []
},
{
"L2name": "计量异常",
"L2Limitation": []
},
{
"L2name": "窃电",
"L2Limitation": []
},
{
"L2name": "技术线损",
"L2Limitation": []
},
{
"L2name": "档案异常",
"L2Limitation": []
}
]
}
]
}
]
}