@@ -159,26 +159,23 @@ public MaaContext(MaaContextHandle contextHandle, MaaTasker tasker)
159159 }
160160
161161 /// <inheritdoc/>
162- public bool WaitFreezes ( TimeSpan time , IMaaRectBuffer recognitionBox , [ StringSyntax ( "Json" ) ] string waitFreezesParam = "{}" )
163- => WaitFreezes ( ( MaaSize ) time . TotalMilliseconds , ( MaaRectBuffer ) recognitionBox , waitFreezesParam ) ;
162+ public bool WaitFreezes ( TimeSpan time = default , IMaaRectBuffer ? recognitionBox = default , [ StringSyntax ( "Json" ) ] string waitFreezesParam = "{}" )
163+ => WaitFreezes ( ( MaaSize ) time . TotalMilliseconds , ( MaaRectBuffer ? ) recognitionBox , waitFreezesParam ) ;
164164
165165 /// <inheritdoc cref="IMaaContext.WaitFreezes(TimeSpan, IMaaRectBuffer, string)"/>
166- public bool WaitFreezes ( TimeSpan time , MaaRectBuffer recognitionBox , [ StringSyntax ( "Json" ) ] string waitFreezesParam = "{}" )
166+ public bool WaitFreezes ( TimeSpan time = default , MaaRectBuffer ? recognitionBox = default , [ StringSyntax ( "Json" ) ] string waitFreezesParam = "{}" )
167167 => WaitFreezes ( ( MaaSize ) time . TotalMilliseconds , recognitionBox , waitFreezesParam ) ;
168168
169169 /// <inheritdoc/>
170- public bool WaitFreezes ( MaaSize millisecondsTime , IMaaRectBuffer recognitionBox , [ StringSyntax ( "Json" ) ] string waitFreezesParam = "{}" )
171- => WaitFreezes ( millisecondsTime , ( MaaRectBuffer ) recognitionBox , waitFreezesParam ) ;
170+ public bool WaitFreezes ( MaaSize millisecondsTime = 0 , IMaaRectBuffer ? recognitionBox = default , [ StringSyntax ( "Json" ) ] string waitFreezesParam = "{}" )
171+ => WaitFreezes ( millisecondsTime , ( MaaRectBuffer ? ) recognitionBox , waitFreezesParam ) ;
172172
173173 /// <inheritdoc cref="IMaaContext.WaitFreezes(MaaSize, IMaaRectBuffer, string)"/>
174174 /// <remarks>
175175 /// Wrapper of <see cref="MaaContextWaitFreezes"/>.
176176 /// </remarks>
177- public bool WaitFreezes ( MaaSize millisecondsTime , MaaRectBuffer recognitionBox , [ StringSyntax ( "Json" ) ] string waitFreezesParam = "{}" )
178- {
179- ArgumentNullException . ThrowIfNull ( recognitionBox ) ;
180- return MaaContextWaitFreezes ( Handle , millisecondsTime , recognitionBox . Handle , waitFreezesParam ) ;
181- }
177+ public bool WaitFreezes ( MaaSize millisecondsTime = 0 , MaaRectBuffer ? recognitionBox = default , [ StringSyntax ( "Json" ) ] string waitFreezesParam = "{}" )
178+ => MaaContextWaitFreezes ( Handle , millisecondsTime , recognitionBox ? . Handle ?? MaaRectHandle . Zero , waitFreezesParam ) ;
182179
183180 /// <inheritdoc/>
184181 /// <remarks>
0 commit comments