Skip to main content

ConVarAttribute

Marks a property as a console variable. Supports int, float, bool, and string. Typing the name in console prints the current value; typing with an argument sets it.

public sealed class ConVarAttribute : Attribute

Namespace: DeadworksManaged.Api
Inherits / implements: Attribute
Source: ConCommands/ConVarAttribute.cs#L8

Constructors​

new ConVarAttribute()​

Signature

public ConVarAttribute(string name)

Source: ConCommands/ConVarAttribute.cs#L14

Properties​

ConVarAttribute.Name​

Signature

public string Name { get; }

Source: ConCommands/ConVarAttribute.cs#L10

ConVarAttribute.Description​

Signature

public string Description { get; set; } = "";

Source: ConCommands/ConVarAttribute.cs#L11

ConVarAttribute.ServerOnly​

Signature

public bool ServerOnly { get; set; }

Source: ConCommands/ConVarAttribute.cs#L12