KeyConvertingAccessor

Accessor that converts input property identity of InputKeyType converts to ConvertedKeyType, and then uses it to access the ComponentType using decorated convertor.

Notice: const InputKeyType must decay to mutable InputKeyType in order for conversion to work properly, as most convertors do not support const values.

Constructors

this
this(PropertyAccessor!(ComponentType, FieldType, ConvertedKeyType) accessor, Convertor convertor)

Constructor for KeyConvertingAccessor

Members

Functions

access
FieldType access(ComponentType component, InputKeyType property, RCIAllocator allocator)

Get a property out of component

accessor
typeof(this) accessor(PropertyAccessor!(ComponentType, FieldType, ConvertedKeyType) accessor)

Set accessor

accessor
inout(PropertyAccessor!(ComponentType, FieldType, ConvertedKeyType)) accessor()

Get accessor

componentType
TypeInfo componentType(ComponentType component)

Identify the type of supported component.

convertor
typeof(this) convertor(Convertor convertor)

Set convertor

convertor
inout(Convertor) convertor()

Get convertor

has
bool has(ComponentType component, InputKeyType property, RCIAllocator allocator)

Check if requested property is present in component.

Meta