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
stringThe name of the property in DocFX.
summary
stringThe summary of the property in DocFX.
typeWithFullNamespace
stringThe name of the type, along with its full namespace. e.g. "System.Single" or "VintageStory.API.Common.CompositeShape".
requiredStatus
stringThe text to put inside the "required" tag in DocFX.
defaultStatus
stringThe text to put inside the "default" tag in DocFX. Use an empty string for none.
attribute
bool