Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
InheritedAttribute Class Reference

Detailed Description

Attribute used for specify inheritance behavior within the attribute list. A special, unique attribute class should be used to control how attributes are inherited. This attribute can be placed anywhere in the attribute list, Be at the beginning, end, or between other attributes in order to specify where inherited attributes should be inserted. This allows you to override specific attributes or establish dependencies as needed. It can be used in a same way for inherited and modded classes.

// Attributes declaration:
class AttributeA : UniqueAttribute;
class AttributeB : AttributeA;
class AttributeC : UniqueAttribute;
// Attributes usage:
[AttributeA(), AttributeB(), AttributeC()]
class SomeClass;
[InheritedAttribute(useVanilla : false), AttributeC()]
class InheritedClass : SomeClass;
// AttributeB is inherited from SomeClass thanks to InheritedAttribute; AttributeC is declared in both SomeClass and InheritedClass,
// but due to it is UniqueAttribute, just the last one from InheritedClass is used. This mechanics can be used to override attributes from base class
// The final result after compilation:
[AttributeB(), AttributeC()]
class InheritedClass : SomeClass;

Definition at line 39 of file InheritedAttribute.c.


The documentation for this class was generated from the following file: