Skip to content

Commit 62d9533

Browse files
committed
gle: remove throw exceptions so could work on script machines
1 parent 31a7bff commit 62d9533

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Runtime/VisualScriptingGamelogicEngine.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections;
23
using System.Collections.Generic;
34
using System.Linq;
45
using System.Runtime.InteropServices;
@@ -14,13 +15,13 @@ public class VisualScriptingGamelogicEngine : MonoBehaviour, IGamelogicEngine
1415
{
1516
public string Name { get; } = "Visual Scripting Gamelogic Engine";
1617

17-
public GamelogicEngineSwitch[] AvailableSwitches => throw new NotImplementedException();
18+
public GamelogicEngineSwitch[] AvailableSwitches => new GamelogicEngineSwitch[0];
1819

19-
public GamelogicEngineLamp[] AvailableLamps => throw new NotImplementedException();
20+
public GamelogicEngineLamp[] AvailableLamps => new GamelogicEngineLamp[0];
2021

21-
public GamelogicEngineCoil[] AvailableCoils => throw new NotImplementedException();
22+
public GamelogicEngineCoil[] AvailableCoils => new GamelogicEngineCoil[0];
2223

23-
public GamelogicEngineWire[] AvailableWires => throw new NotImplementedException();
24+
public GamelogicEngineWire[] AvailableWires => new GamelogicEngineWire[0];
2425

2526
public event EventHandler<AvailableDisplays> OnDisplaysAvailable;
2627
public event EventHandler<DisplayFrameData> OnDisplayFrame;
@@ -31,12 +32,11 @@ public class VisualScriptingGamelogicEngine : MonoBehaviour, IGamelogicEngine
3132

3233
public void OnInit(Player player, TableApi tableApi, BallManager ballManager)
3334
{
34-
throw new NotImplementedException();
35+
3536
}
3637

3738
public void Switch(string id, bool isClosed)
3839
{
39-
throw new NotImplementedException();
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)