Exemplo n.º 1
0
        protected string FormatStructs()
        {
            if (Structs == null || !Structs.Any())
            {
                return(String.Empty);
            }

            string output = String.Empty;

            foreach (var scriptStruct in Structs)
            {
                // And add a empty line between all structs!
                try
                {
                    output += "\r\n" + scriptStruct.Decompile() + "\r\n";
                }
                catch
                {
                    output += String.Format("\r\nFailed at decompiling struct: {0}", scriptStruct.Name);
                }
            }
            return(output);
        }