| 1912 | } |
| 1913 | |
| 1914 | void DocumentFormat(QOStream& out, int index) |
| 1915 | { |
| 1916 | WriteF(out, 2, "<message name=\"%s\" id=\"%d\" group=\"%s\">", NetworkMessageTypeNames[index], index, |
| 1917 | MessageTypeGroups[index]); |
| 1918 | WriteF(out, 2, MessageTypeDescriptions[index]); |
| 1919 | const NetworkMessageFormat& format = *GMsgFormats[index]; |
| 1920 | WriteF(out, 3, "<items>"); |
| 1921 | for (int i = 0; i < format.NItems(); i++) |
| 1922 | { |
| 1923 | const NetworkMessageFormatItem& item = format.GetItem(i); |
| 1924 | WriteF(out, 4, "<item name=\"%s\" type=\"%s\">", (const char*)item.name, ItemTypeNames[item.type]); |
| 1925 | WriteF(out, 4, format._descriptions[i]); |
| 1926 | WriteF(out, 4, "</item>"); |
| 1927 | } |
| 1928 | WriteF(out, 3, "</items>"); |
| 1929 | WriteF(out, 2, "</message>"); |
| 1930 | } |
| 1931 | #endif |
| 1932 | |
| 1933 | // Initialization of local (static) message formats |
no test coverage detected