public string OneLineInfo()
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("{0}({1})", MessageName, MessageType);
sb.Append("({0}, {1}, {2})", MessageDestination, Value, PlayerEdict);
sb.Append("(");
for (int i = 0; i < Arguments.Count; i++) {
MessageArgument argument = Arguments[i];
if (argument.Type == typeof(string)) {
sb.Append("{0}:{1}", argument.ShortTypeName, (argument.Value as string).Escape());
} else {
sb.Append("{0}:{1}", argument.ShortTypeName, argument.Value);
}
if (i + 1 < Arguments.Count) {
sb.Append(", ");
}
}
sb.Append(");");
return sb.ToString();
}