Skip to content

Commit 5af29f6

Browse files
committed
api: Lamp values are now always float.
1 parent 4cbb1cb commit 5af29f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public void SetCoil(string id, bool isEnabled)
153153
OnCoilChanged?.Invoke(this, new CoilEventArgs(id, isEnabled));
154154
}
155155

156-
public void SetLamp(string id, int value, bool isCoil = false, LampSource source = LampSource.Lamp)
156+
public void SetLamp(string id, float value, bool isCoil = false, LampSource source = LampSource.Lamp)
157157
{
158158
OnLampChanged?.Invoke(this, new LampEventArgs(id, value, isCoil, source));
159159
}

0 commit comments

Comments
 (0)