Skip to content

Commit 6f31bb7

Browse files
committed
logdebug and logerror are now wrappers around the vm
1 parent c2f56fe commit 6f31bb7

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

YarnSpinner/Dialogue.cs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,12 +555,32 @@ public class Dialogue : ISmartVariableEvaluator
555555
/// Invoked when the Dialogue needs to report debugging
556556
/// information.
557557
/// </summary>
558-
public Logger? LogDebugMessage { get; set; }
558+
public Logger? LogDebugMessage
559+
{
560+
get
561+
{
562+
return vm.LogDebugMessage;
563+
}
564+
set
565+
{
566+
vm.LogDebugMessage = value;
567+
}
568+
}
559569

560570
/// <summary>
561571
/// Invoked when the Dialogue needs to report an error.
562572
/// </summary>
563-
public Logger? LogErrorMessage { get; set; }
573+
public Logger? LogErrorMessage
574+
{
575+
get
576+
{
577+
return vm.LogErrorMessage;
578+
}
579+
set
580+
{
581+
vm.LogErrorMessage = value;
582+
}
583+
}
564584

565585
/// <summary>The node that execution will start from.</summary>
566586
public const string DefaultStartNodeName = "Start";

0 commit comments

Comments
 (0)