add new constructor for VmcExtSetCalibExec

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-17 09:55:11 -04:00
parent cdc699a927
commit 701ffac439

View File

@ -44,5 +44,15 @@ namespace godotVmcSharp
}
mode = (int)m.Data[0].Value;
}
public VmcExtSetCalibExec(int _mode) : base(new godotOscSharp.Address("/VMC/Ext/Set/Calib/Exec"))
{
if (_mode < 0 || _mode > 2)
{
GD.Print($"Invalid value for argument \"mode\" of \"/VMC/Ext/Set/Calib/Exec\". Expected in range 0-2, received {_mode}");
return;
}
mode = _mode;
}
}
}