Oops, interface implementations on Program don't carry over into the compiled game script. IConsoleProgram will have to just stand as a compile-time checking convenience.

This commit is contained in:
2025-02-14 16:20:50 -05:00
parent 372e9e22d2
commit 54f04a7cf0
3 changed files with 7 additions and 11 deletions

View File

@ -86,7 +86,7 @@ namespace IngameScript
private const int CooldownTicks = 12;
private const int SealTimeoutTicks = 30;
public Airlock(string name, IConsoleProgram _program)
public Airlock(string name, Program _program)
{
_ini = _program.Ini;
_name = name;
@ -121,7 +121,8 @@ namespace IngameScript
// Precondition: _ini.TryParse() should be called on the block before calling this function.
private void addVent(IMyAirVent vent)
{
if (_airVent == null) {
if (_airVent == null)
{
_airVent = vent;
return;
}