private void OnMechUpdatedCallback(int mechNo, ref PinMameApi.PinmameMechInfo mechInfoRef) { var mechInfo = new PinMameMechInfo(mechInfoRef); Logger.Trace($"OnMechUpdatedCallback - mechNo={mechNo}, mechInfo={mechInfo}"); OnMechUpdated?.Invoke(mechNo, mechInfo); }
static void OnMechUpdated(int mechNo, PinMameMechInfo mechInfo) { Logger.Info($"OnMechUpdated: mechNo={mechNo}, mechInfo={mechInfo}, sw33={_pinMame.GetSwitch(33)}, sw32={_pinMame.GetSwitch(32)}"); }