@@ -109,11 +109,13 @@ type GameOverMessageBody =
109
109
interface IRawOutgoingMessageBody
110
110
val ActualCoverage : uint < percent >
111
111
val TestsCount : uint32 < test >
112
+ val StepsCount : uint32 < step >
112
113
val ErrorsCount : uint32 < error >
113
114
114
- new ( actualCoverage, testsCount, errorsCount) =
115
+ new ( actualCoverage, testsCount, stepsCount , errorsCount) =
115
116
{ ActualCoverage = actualCoverage
116
117
TestsCount = testsCount
118
+ StepsCount = stepsCount
117
119
ErrorsCount = errorsCount }
118
120
119
121
[<Struct>]
@@ -371,7 +373,7 @@ type IncorrectPredictedStateIdMessageBody =
371
373
new ( stateId) = { StateId = stateId }
372
374
373
375
type OutgoingMessage =
374
- | GameOver of uint < percent > * uint32 < test > * uint32 < error >
376
+ | GameOver of uint < percent > * uint32 < test > * uint32 < step > * uint32 < error >
375
377
| MoveReward of Reward
376
378
| IncorrectPredictedStateId of uint < stateId >
377
379
| ReadyForNextStep of GameState
@@ -397,8 +399,8 @@ let deserializeInputMessage (messageData: byte[]) =
397
399
398
400
let serializeOutgoingMessage ( message : OutgoingMessage ) =
399
401
match message with
400
- | GameOver( actualCoverage, testsCount, errorsCount) ->
401
- RawOutgoingMessage( " GameOver" , box ( GameOverMessageBody( actualCoverage, testsCount, errorsCount)))
402
+ | GameOver( actualCoverage, testsCount, stepsCount , errorsCount) ->
403
+ RawOutgoingMessage( " GameOver" , box ( GameOverMessageBody( actualCoverage, testsCount, stepsCount , errorsCount)))
402
404
| MoveReward reward -> RawOutgoingMessage( " MoveReward" , reward)
403
405
| IncorrectPredictedStateId stateId ->
404
406
RawOutgoingMessage( " IncorrectPredictedStateId" , IncorrectPredictedStateIdMessageBody stateId)
0 commit comments