Example #1
0
        public override string Compile()
        {
            if (IsEnhancedClient)
            {
                return(String.Empty);
            }

            var compiled = String.Empty;

            if (!VirtualAsset.IsNullOrEmpty(_Asset))
            {
                _Asset.ForEach(
                    (x, y, c) =>
                {
                    if (!c.IsEmpty && c != Color.Transparent)
                    {
                        compiled += Compile(x, y, 1, 1, c);
                    }
                });
            }

            if (String.IsNullOrWhiteSpace(compiled))
            {
                compiled = Compile(_X, _Y, Width, Height, Color.Transparent);
            }

            return(compiled);
        }