button and symbol events, PuzzleDetail log type
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using EscapeRoomEngine.Engine.Runtime.Utilities;
|
||||
using NaughtyAttributes;
|
||||
using Logger = EscapeRoomEngine.Engine.Runtime.Utilities.Logger;
|
||||
@@ -62,18 +61,10 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
|
||||
Module = PuzzleModule.FromModule(module);
|
||||
}
|
||||
|
||||
[Button(enabledMode: EButtonEnableMode.Playmode)]
|
||||
public void Solve()
|
||||
{
|
||||
Solved = true;
|
||||
}
|
||||
|
||||
[Button(enabledMode: EButtonEnableMode.Playmode)]
|
||||
public void Restart()
|
||||
{
|
||||
Solved = false;
|
||||
}
|
||||
#region Debug Buttons
|
||||
|
||||
[Button(enabledMode: EButtonEnableMode.Playmode)] public void Solve() => Solved = true;
|
||||
[Button(enabledMode: EButtonEnableMode.Playmode)] public void Restart() => Solved = false;
|
||||
[Button("Trigger Wrong Input", EButtonEnableMode.Playmode)]
|
||||
public void WrongInput()
|
||||
{
|
||||
@@ -82,6 +73,8 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
|
||||
OnPuzzleEvent(PuzzleEventType.WrongInput);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public static PuzzleState FromState(ModuleState state)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user