33 lines
575 B
C#
33 lines
575 B
C#
![]() |
#region copyright
|
|||
|
// ---------------------------------------------------------------
|
|||
|
// Copyright (C) Dmitriy Yukhanov - focus [https://codestage.net]
|
|||
|
// ---------------------------------------------------------------
|
|||
|
#endregion
|
|||
|
|
|||
|
namespace CodeStage.AntiCheat.Common
|
|||
|
{
|
|||
|
using System;
|
|||
|
|
|||
|
[Serializable]
|
|||
|
internal struct ACTkByte4
|
|||
|
{
|
|||
|
public byte b1;
|
|||
|
public byte b2;
|
|||
|
public byte b3;
|
|||
|
public byte b4;
|
|||
|
|
|||
|
public void Shuffle()
|
|||
|
{
|
|||
|
var buffer = b2;
|
|||
|
b2 = b3;
|
|||
|
b3 = buffer;
|
|||
|
}
|
|||
|
|
|||
|
public void UnShuffle()
|
|||
|
{
|
|||
|
var buffer = b3;
|
|||
|
b3 = b2;
|
|||
|
b2 = buffer;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|