@@ -37,7 +37,6 @@ public class MpfGamelogicEngine : MonoBehaviour, IGamelogicEngine
37
37
public event EventHandler < EventArgs > OnStarted ;
38
38
public event EventHandler < LampEventArgs > OnLampChanged ;
39
39
public event EventHandler < LampsEventArgs > OnLampsChanged ;
40
- public event EventHandler < LampColorEventArgs > OnLampColorChanged ;
41
40
public event EventHandler < CoilEventArgs > OnCoilChanged ;
42
41
public event EventHandler < RequestedDisplays > OnDisplaysRequested ;
43
42
public event EventHandler < DisplayFrameData > OnDisplayFrame ;
@@ -161,11 +160,6 @@ public void SetLamp(string id, float value, bool isCoil = false, LampSource sour
161
160
OnLampChanged ? . Invoke ( this , new LampEventArgs ( id , value , isCoil , source ) ) ;
162
161
}
163
162
164
- public void SetLamp ( string id , Color color )
165
- {
166
- OnLampColorChanged ? . Invoke ( this , new LampColorEventArgs ( id , color ) ) ;
167
- }
168
-
169
163
public LampState GetLamp ( string id )
170
164
{
171
165
return _player . LampStatuses . ContainsKey ( id ) ? _player . LampStatuses [ id ] : LampState . Default ;
@@ -222,7 +216,7 @@ private void OnFadeLight(object sender, FadeLightRequest e)
222
216
var args = new List < LampEventArgs > ( ) ;
223
217
foreach ( var fade in e . Fades ) {
224
218
if ( _lampNames . ContainsKey ( fade . LightNumber ) ) {
225
- args . Add ( new LampEventArgs ( _lampNames [ fade . LightNumber ] , ( int ) ( fade . TargetBrightness * 255 ) ) ) ;
219
+ args . Add ( new LampEventArgs ( _lampNames [ fade . LightNumber ] , fade . TargetBrightness ) ) ;
226
220
} else {
227
221
Logger . Error ( "Unmapped MPF lamp " + fade . LightNumber ) ;
228
222
}
0 commit comments