File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
VisualPinball.Engine.Mpf.Unity/Runtime Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1
- // Visual Pinball Engine
1
+ // Visual Pinball Engine
2
2
// Copyright (C) 2021 freezy and VPE Team
3
3
//
4
4
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9
9
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
10
10
// SOFTWARE.
11
11
12
- using System ;
13
12
using System . Collections . Generic ;
14
13
using System . Linq ;
15
14
using System . Text . RegularExpressions ;
16
15
using Mpf . Vpe ;
17
16
using VisualPinball . Engine . Common ;
18
17
using VisualPinball . Engine . Game . Engines ;
19
18
using VisualPinball . Unity ;
20
- using NLog ;
21
- using Logger = NLog . Logger ;
22
19
23
20
namespace VisualPinball . Engine . Mpf . Unity
24
21
{
25
22
public static class MpfExtensions
26
23
{
27
- private static readonly Logger Logger = LogManager . GetCurrentClassLogger ( ) ;
28
-
29
24
public static IEnumerable < GamelogicEngineSwitch > GetSwitches ( this MachineDescription md )
30
25
{
31
26
return md . Switches . Select ( sw => {
@@ -108,10 +103,7 @@ public static IEnumerable<GamelogicEngineCoil> GetCoils(this MachineDescription
108
103
public static IEnumerable < GamelogicEngineLamp > GetLights ( this MachineDescription md )
109
104
{
110
105
// 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 ) ) ) ;
115
107
}
116
108
}
117
109
}
You can’t perform that action at this time.
0 commit comments