PropertyAccessor.access

Get a property out of component

interface PropertyAccessor(ComponentType, FieldType = ComponentType, KeyType = string)
const
FieldType
access
(
ComponentType component
,
in KeyType property
,
RCIAllocator allocator = theAllocator
)

Parameters

component ComponentType

a component which has some properties identified by property.

property KeyType

property of component that needs to be extracted, even by allocating some memory.

allocator RCIAllocator

optional allocator used only for allocation of accessed components. It should not be used for other purposes whatsoever.

Return Value

Type: FieldType

FieldType accessed property.

Throws

NotFoundException in case when no requested property is available. InvalidArgumentException in case when passed arguments are somehow invalid for use.

Meta