AlbedoDatabaseGenerator.Database.Entry.ExportSwatch C# (CSharp) Method

ExportSwatch() private method

private ExportSwatch ( Manifest _Swatch ) : string
_Swatch Manifest
return string
            private string ExportSwatch( Manifest.Swatch _Swatch )
            {
                string	JSON = L( "{" );
                Indent();

                JSON += L( "xyY : \"" + _Swatch.m_xyY.ToString() + "\"," );
                JSON += L( "RGB : \"" + _Swatch.m_RGB.ToString() + "\"," );
                JSON += L( "Color : \"" + (_Swatch.Color.ToArgb() & 0xFFFFFF).ToString( "X6" ) + "\"," );

                if ( _Swatch.m_LocationTopLeft != null )
                    JSON += L( "TopLeft : { x : " + _Swatch.m_LocationTopLeft.x + ", y : " + _Swatch.m_LocationTopLeft.y + " }," );
                if ( _Swatch.m_LocationBottomRight != null )
                    JSON += L( "BottomRight : { x : " + _Swatch.m_LocationBottomRight.x + ", y : " + _Swatch.m_LocationBottomRight.y + " }," );

                UnIndent();
                JSON += L( "}," );

                return JSON;
            }