Skip to content

Commit 7b68ab7

Browse files
jsm174freezy
authored andcommitted
cleanup: revert logging change
1 parent e8b9c2a commit 7b68ab7

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

VisualPinball.Engine.Mpf.Unity/Runtime/MpfExtensions.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Visual Pinball Engine
1+
// Visual Pinball Engine
22
// Copyright (C) 2021 freezy and VPE Team
33
//
44
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
@@ -9,23 +9,18 @@
99
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1010
// SOFTWARE.
1111

12-
using System;
1312
using System.Collections.Generic;
1413
using System.Linq;
1514
using System.Text.RegularExpressions;
1615
using Mpf.Vpe;
1716
using VisualPinball.Engine.Common;
1817
using VisualPinball.Engine.Game.Engines;
1918
using VisualPinball.Unity;
20-
using NLog;
21-
using Logger = NLog.Logger;
2219

2320
namespace VisualPinball.Engine.Mpf.Unity
2421
{
2522
public static class MpfExtensions
2623
{
27-
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
28-
2924
public static IEnumerable<GamelogicEngineSwitch> GetSwitches(this MachineDescription md)
3025
{
3126
return md.Switches.Select(sw => {
@@ -108,10 +103,7 @@ public static IEnumerable<GamelogicEngineCoil> GetCoils(this MachineDescription
108103
public static IEnumerable<GamelogicEngineLamp> GetLights(this MachineDescription md)
109104
{
110105
// todo color
111-
return md.Lights.Select(light => {
112-
Logger.Info(light);
113-
return new GamelogicEngineLamp(light.Name, int.Parse(light.HardwareChannelNumber));
114-
});
106+
return md.Lights.Select(light => new GamelogicEngineLamp(light.Name, int.Parse(light.HardwareChannelColor)));
115107
}
116108
}
117109
}

0 commit comments

Comments
 (0)