Skip to content

Commit 31a7bff

Browse files
committed
gle: add stub of game logic engine
1 parent 8a4f6a3 commit 31a7bff

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Runtime.InteropServices;
5+
using NLog;
6+
using UnityEngine;
7+
using VisualPinball.Engine.Game.Engines;
8+
using VisualPinball.Unity;
9+
using Logger = NLog.Logger;
10+
11+
namespace VisualPinball.Unity.VisualScripting
12+
{
13+
public class VisualScriptingGamelogicEngine : MonoBehaviour, IGamelogicEngine
14+
{
15+
public string Name { get; } = "Visual Scripting Gamelogic Engine";
16+
17+
public GamelogicEngineSwitch[] AvailableSwitches => throw new NotImplementedException();
18+
19+
public GamelogicEngineLamp[] AvailableLamps => throw new NotImplementedException();
20+
21+
public GamelogicEngineCoil[] AvailableCoils => throw new NotImplementedException();
22+
23+
public GamelogicEngineWire[] AvailableWires => throw new NotImplementedException();
24+
25+
public event EventHandler<AvailableDisplays> OnDisplaysAvailable;
26+
public event EventHandler<DisplayFrameData> OnDisplayFrame;
27+
public event EventHandler<LampEventArgs> OnLampChanged;
28+
public event EventHandler<LampsEventArgs> OnLampsChanged;
29+
public event EventHandler<LampColorEventArgs> OnLampColorChanged;
30+
public event EventHandler<CoilEventArgs> OnCoilChanged;
31+
32+
public void OnInit(Player player, TableApi tableApi, BallManager ballManager)
33+
{
34+
throw new NotImplementedException();
35+
}
36+
37+
public void Switch(string id, bool isClosed)
38+
{
39+
throw new NotImplementedException();
40+
}
41+
}
42+
}

Runtime/VisualScriptingGamelogicEngine.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)