T- The Property type created
public interface PropertyFactory<T extends Property>
Attributesas its only argument. The constructor does not need to be public.
|Modifier and Type||Method and Description|
Copy the value from src at component index, srcIndex to dst at dstIndex.
Return a new Property instance.
Set the default value that the component at the specified index will see before it's init() method is invoked.
void setDefaultValue(T property, int index)
property- The property whose value will be updated
index- The component index to be updated
Entity.add(com.lhkbob.entreri.Component). For many cases a plain copy-by-value or copy-by-reference is sufficient, but some component types might require more complicated cloning rules.
src- The source property that is being cloned
srcIndex- The index into src of the component being cloned
dst- The destination property created from the template
dstIndex- The index into dst of the component being created
Copyright © 2013. All Rights Reserved.