PropertyManager
private class
loom.gameframework.PropertyManager
Description
Abstract property lookups. Because properties can be fetched from a variety of sources, having the full implementation in LoomGameObject is unwieldy - and inflexible, since people will want to do lookups on other kinds of objects.
The PropertyManager allows easy addition of new functionality via plugins, and handles caching lookups for efficiency.
API overview
Constructor
Attributes
Protected attributes
Functions
Public functions
| applyBinding ( scope: Object , binding: String ): Void | |
| applyBindings ( component: LoomComponent , bindings: Vector.<Object> ): Void |
static native Applys an encoded property vector to the provided component This is an internal call and should not be called outside of LoomComponent |
| findProperty ( scope: Object , property: String , providedInfo: PropertyManagerInfo ): PropertyManagerInfo | |
| getProperty ( scope: Object , property: String , defaultValue: Object ): Object | |
| registerPropertyType ( prefix: String , plugin: IPropertyPlugin ): Void | |
| setProperty ( scope: Object , property: String , value: Object ): Void |
Constructor
PropertyManager ()
Attributes
Protected attributes
Functions
applyBindings ( component: LoomComponent , bindings: Vector.<Object> ): Void
static native
Applys an encoded property vector to the provided component
This is an internal call and should not be called outside of LoomComponent
Parameters
| component: LoomComponent | The component to apply the bindings to |
| bindings: Vector.<Object> | the encoded property vector |
findProperty ( scope: Object , property: String , providedInfo: PropertyManagerInfo ): PropertyManagerInfo
Parameters
| scope: Object | |
| property: String | |
| providedInfo: PropertyManagerInfo |
getFullTypeName
(): String
Inherited from Object
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
| String | fully qualified type name of the Object. |
getProperty ( scope: Object , property: String , defaultValue: Object ): Object
Parameters
| scope: Object | |
| property: String | |
| defaultValue: Object |
getType
(): Type
Inherited from Object
native
Gets the Type that describes the Object.
Returns
| Type | The Type that describes the object. |
getTypeName
(): String
Inherited from Object
native
Gets the type name of the Object.
Returns
| String | type name of the Object. |
registerPropertyType ( prefix: String , plugin: IPropertyPlugin ): Void
Parameters
| prefix: String | |
| plugin: IPropertyPlugin |