Skip to content

Commit cb869d0

Browse files
freezyjsm174
authored andcommitted
api: Use LampState instead of float.
1 parent 08c0fd9 commit cb869d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VisualPinball.Engine.PinMAME.Unity/Runtime/PinMameGamelogicEngine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,9 +662,9 @@ public void SetLamp(string id, Color color)
662662
OnLampColorChanged?.Invoke(this, new LampColorEventArgs(id, color));
663663
}
664664

665-
public float GetLamp(string id)
665+
public LampState GetLamp(string id)
666666
{
667-
return _player != null && _player.LampStatuses.ContainsKey(id) ? _player.LampStatuses[id] : 0;
667+
return _player != null && _player.LampStatuses.ContainsKey(id) ? _player.LampStatuses[id] : LampState.Default;
668668
}
669669

670670
public bool GetSwitch(string id)

0 commit comments

Comments
 (0)