Class SettingContextAttribute
- Namespace
- XENBIT.ResQueServe.Abstractions.Attributes
- Assembly
- RQS.Abstractions.dll
Declares the SettingContext of a dispatch center setting (e.g. a
DispatchCenterOption member) or of a property of master data (e.g. a simulation field of a unit). The
attribute is the single source of truth for the API, the Editor and the Realm / SIM Dispatcher boundary; every
member of a setting enum must carry it, properties without it are master data. A simulation property is neutral
at its CLR default or its DefaultValueAttribute.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class SettingContextAttribute : Attribute
- Inheritance
-
SettingContextAttribute
- Inherited Members
- Extension Methods
Constructors
SettingContextAttribute(SettingContext)
Declares the SettingContext of a dispatch center setting (e.g. a
DispatchCenterOption member) or of a property of master data (e.g. a simulation field of a unit). The
attribute is the single source of truth for the API, the Editor and the Realm / SIM Dispatcher boundary; every
member of a setting enum must carry it, properties without it are master data. A simulation property is neutral
at its CLR default or its DefaultValueAttribute.
public SettingContextAttribute(SettingContext context)
Parameters
contextSettingContext
Properties
Context
The context the setting belongs to.
public SettingContext Context { get; }