public void ToStream(XmlWriter s, Managers.TagManager tag, TI.Definition owner) { s.WriteStartElement("entry"); int type_index = TypeIndex.Value; if (type_index >= 0) { var types = (owner as multiplayer_object_type_list_group).TypeList; s.WriteAttributeString("typeIndex", type_index.ToString()); s.WriteAttributeString("typeName", types[type_index].Name.ToString()); } if (!DescriptionText.Handle.IsNull) { s.WriteAttributeString("desc", DescriptionText.ToString()); } if (!HeaderText.Handle.IsNull) { s.WriteAttributeString("header", HeaderText.ToString()); } if (!HelpText.Handle.IsNull) { s.WriteAttributeString("help", HelpText.ToString()); } if (!Icon.Handle.IsNull) { s.WriteAttributeString("icon", Icon.ToString()); } #if false if (Unknown10.Value > 0) { s.WriteAttributeString("unk10", Unknown10.ToString()); } if (Unknown14.Value > 0) { s.WriteAttributeString("unk14", Unknown14.ToString()); } #endif s.WriteEndElement(); }
public override string ToString() { var sb = new StringBuilder("ChannelInfo("); bool __first = true; if (ChannelId != null && __isset.channelId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ChannelId: "); ChannelId.ToString(sb); } if (Name != null && __isset.name) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Name: "); Name.ToString(sb); } if (EntryPageUrl != null && __isset.entryPageUrl) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("EntryPageUrl: "); EntryPageUrl.ToString(sb); } if (DescriptionText != null && __isset.descriptionText) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DescriptionText: "); DescriptionText.ToString(sb); } if (Provider != null && __isset.provider) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Provider: "); Provider.ToString(sb); } if (__isset.publicType) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PublicType: "); PublicType.ToString(sb); } if (IconImage != null && __isset.iconImage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("IconImage: "); IconImage.ToString(sb); } if (Permissions != null && __isset.permissions) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Permissions: "); Permissions.ToString(sb); } if (IconThumbnailImage != null && __isset.iconThumbnailImage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("IconThumbnailImage: "); IconThumbnailImage.ToString(sb); } if (ChannelConfigurations != null && __isset.channelConfigurations) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ChannelConfigurations: "); ChannelConfigurations.ToString(sb); } if (__isset.lcsAllApiUsable) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("LcsAllApiUsable: "); LcsAllApiUsable.ToString(sb); } if (AllowedPermissions != null && __isset.allowedPermissions) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("AllowedPermissions: "); AllowedPermissions.ToString(sb); } if (ChannelDomains != null && __isset.channelDomains) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ChannelDomains: "); ChannelDomains.ToString(sb); } if (__isset.updatedTimestamp) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("UpdatedTimestamp: "); UpdatedTimestamp.ToString(sb); } sb.Append(")"); return(sb.ToString()); }