20 lines
695 B
C#
20 lines
695 B
C#
namespace SVSim.BattleNode.Protocol;
|
|
|
|
/// <summary>
|
|
/// Wire value of <c>result</c> on a BattleFinish frame. The client's
|
|
/// <c>BattleFinishResponsProcessing</c> switch maps these as:
|
|
/// 0 → LOSE, 1 → WIN, 2 → CONSISTENCY (desync / action-list mismatch).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This is NOT the same as the client's in-memory <c>BATTLE_RESULT_TYPE</c> enum
|
|
/// (NONE=0, WIN=1, LOSE=2, CONSISTENCY=3) — the wire codes shift LOSE down to 0.
|
|
/// Always serialize as the int value, not the name; see the
|
|
/// <c>JsonNumberEnumConverter</c> on <see cref="Bodies.BattleFinishBody.Result"/>.
|
|
/// </remarks>
|
|
public enum BattleResult
|
|
{
|
|
Lose = 0,
|
|
Win = 1,
|
|
Consistency = 2,
|
|
}
|