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;
}