Chewie.ChatParser.Clamp C# (CSharp) 메소드

Clamp() 개인적인 메소드

private Clamp ( int value, int min, int max ) : int
value int
min int
max int
리턴 int
        int Clamp( int value, int min, int max )
        {
            if ( value < min )
                return min;

            if ( value > max )
                return max;

            return value;
        }