public SwitchListData(MappingsSwitchData mappingsSwitchData)
        {
            Id             = mappingsSwitchData.Id;
            Description    = mappingsSwitchData.Description;
            Source         = mappingsSwitchData.Source;
            InputActionMap = mappingsSwitchData.InputActionMap;
            InputAction    = mappingsSwitchData.InputAction;
            PlayfieldItem  = mappingsSwitchData.PlayfieldItem;
            Constant       = mappingsSwitchData.Constant;
            Device         = mappingsSwitchData.Device;
            DeviceItem     = mappingsSwitchData.DeviceItem;
            PulseDelay     = mappingsSwitchData.PulseDelay;

            MappingsSwitchData = mappingsSwitchData;
        }
示例#2
0
 public SwitchConfig(MappingsSwitchData switchData)
 {
     SwitchId      = switchData.Id;
     IsPulseSwitch = false;
     PulseDelay    = switchData.PulseDelay;
 }