ACR_Items.ItemColors.SetColorInTintStruct C# (CSharp) Метод

SetColorInTintStruct() приватный статический Метод

private static SetColorInTintStruct ( GFFStruct colorStruct, int colorNumber, int color ) : int
colorStruct GFFStruct
colorNumber int
color int
Результат int
        private static int SetColorInTintStruct(GFFStruct colorStruct, int colorNumber, int color)
        {
            colorStruct[colorNumber.ToString()].ValueStruct["r"].ValueByte = (byte)((color & (255 * 256 * 256)) / (256 * 256));
            colorStruct[colorNumber.ToString()].ValueStruct["g"].ValueByte = (byte)((color & (255 * 256)) / 256);
            colorStruct[colorNumber.ToString()].ValueStruct["b"].ValueByte = (byte)(color & 255);
            return color;
        }