Table of Contents

Class AddDocumentationPropertyAttribute

Namespace
Vintagestory.API
Assembly
VintagestoryAPI.dll

Adds a new property in the DocFX JSON documentation. Useful for attribute types which do not store JSON properties as variables. Properties need to be serializable by DocFX, hence why they're all strings. Sorry about that.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class AddDocumentationPropertyAttribute : Attribute
Inheritance
AddDocumentationPropertyAttribute
Inherited Members
Extension Methods

Constructors

AddDocumentationPropertyAttribute(string, string, string, string, string, bool)

Adds a new property in the DocFX JSON documentation. Useful for attribute types which do not store JSON properties as variables. Properties need to be serializable by DocFX, hence why they're all strings. Sorry about that.

public AddDocumentationPropertyAttribute(string name, string summary, string typeWithFullNamespace, string requiredStatus, string defaultStatus, bool attribute = false)

Parameters

name string

The name of the property in DocFX.

summary string

The summary of the property in DocFX.

typeWithFullNamespace string

The name of the type, along with its full namespace. e.g. "System.Single" or "VintageStory.API.Common.CompositeShape".

requiredStatus string

The text to put inside the "required" tag in DocFX.

defaultStatus string

The text to put inside the "default" tag in DocFX. Use an empty string for none.

attribute bool