Class GuidReferenceableAttribute
Attribute that associates EntityData with its respective EntityDataAsset.
For example: between ICurrencyData and its counter part CurrencyDataAsset below.
In addition, this also helps to locate the EntityData from another EntityDataAsset.
Inheritance
GuidReferenceableAttribute
Assembly: cs.temp.dll.dll
Syntax
public class GuidReferenceableAttribute : Attribute, _Attribute
Examples
[GuidReferenceable(typeof(CurrencyData))]
public class CurrencyDataAsset : ScriptableObject, ICurrencyDataAsset
{
[SerializeField]
private CurrencyData _data = CurrencyData.Create();
public ICurrencyData data { get { return _data; } }
...
}
Constructors
GuidReferenceableAttribute(Type)
Declaration
public GuidReferenceableAttribute(Type referenceType)
Parameters
Type |
Name |
Description |
Type |
referenceType |
|
Properties
ReferenceType
Declaration
public Type ReferenceType { get; }
Property Value
Implements