Skip to content

Commit 3faaf7f

Browse files
committed
api: Use LampState instead of float.
1 parent 1c007c2 commit 3faaf7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

169-
public float GetLamp(string id)
169+
public LampState GetLamp(string id)
170170
{
171-
return _player.LampStatuses.ContainsKey(id) ? _player.LampStatuses[id] : 0;
171+
return _player.LampStatuses.ContainsKey(id) ? _player.LampStatuses[id] : LampState.Default;
172172
}
173173

174174
public bool GetSwitch(string id)

0 commit comments

Comments
 (0)