Skip to content

Commit

Permalink
fix: ITerminal now exposes the InputFieldDriver Instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Computerdores committed Apr 1, 2024
1 parent 8da9f5d commit 9151779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions AdvancedTerminalAPI/ITerminal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public interface ITerminal {
public delegate string DisplayTextSupplier(string finalArguments);

public void RegisterDriver(InputFieldDriver driver);
public InputFieldDriver GetDriver();

public void PreAwake();
public void PostAwake();
Expand Down
2 changes: 2 additions & 0 deletions AdvancedTerminalAPI/VanillinTerminal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class VanillinTerminal : ITerminal {
_driver.OnEnterTerminal += OnEnterTerminal;
}

public InputFieldDriver GetDriver() => _driver;

public void PreAwake() { }
public void PostAwake() { }
public void PreStart() { }
Expand Down

0 comments on commit 9151779

Please sign in to comment.