示例#1
0
文件: RanmaPlate.cs 项目: Kreyl/nute
        public RanmaPlate(int subsystemsCount, IGateModel gateModel)
        {
            _gateModel = gateModel;
            for (var i = 0; i < subsystemsCount; i++)
            {
                _plateStatusList.Add(new ShipSubsystemStatus {Severity = RanmaRepairSeverity.NotDamaged, SubSystemNum = i});
            }

            _gateModel.DeviceDataArrived += PlateDataRead;
            _gateModel.DeviceOnlineChanged += GateModelDeviceOnlineChanged;
        }
示例#2
0
文件: RanmaPlate.cs 项目: Kreyl/nute
        public RanmaPlate(int subsystemsCount, IGateModel gateModel)
        {
            _gateModel = gateModel;
            for (var i = 0; i < subsystemsCount; i++)
            {
                _plateStatusList.Add(new ShipSubsystemStatus {
                    Severity = RanmaRepairSeverity.NotDamaged, SubSystemNum = i
                });
            }

            _gateModel.DeviceDataArrived   += PlateDataRead;
            _gateModel.DeviceOnlineChanged += GateModelDeviceOnlineChanged;
        }