Skip to content

Commit f949fb8

Browse files
add default lock reason as AdminCommand to LockDoorMethod.cs
1 parent d81d498 commit f949fb8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MethodSystem/Methods/DoorMethods/LockDoorMethod.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ public class LockDoorMethod : SynchronousMethod
1212
public override Argument[] ExpectedArguments { get; } =
1313
[
1414
new DoorsArgument("doors"),
15-
new EnumArgument<DoorLockReason>("lock")
15+
new EnumArgument<DoorLockReason>("lock")
16+
{
17+
DefaultValue = DoorLockReason.AdminCommand
18+
}
1619
];
1720

1821
public override void Execute()

0 commit comments

Comments
 (0)