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)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,8 @@ namespace EscapeRoomEngine.Engine.Runtime.Utilities
|
||||
PassageConnection,
|
||||
RoomGeneration,
|
||||
RequirementResolution,
|
||||
PuzzleFlow
|
||||
PuzzleFlow,
|
||||
PuzzleDetail
|
||||
}
|
||||
|
||||
public class Logger : MonoBehaviour
|
||||
@@ -31,7 +32,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Utilities
|
||||
public bool loggingEnabled;
|
||||
public List<LogType> typeFilter;
|
||||
|
||||
public static void Log(string message, LogType type = LogType.Important)
|
||||
public static void Log(string message, LogType type)
|
||||
{
|
||||
if (DefaultLogger.loggingEnabled && DefaultLogger.typeFilter.Contains(type))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user