| Package | com.pblabs.engine.entity |
| Interface | public interface IPropertyBag |
| Property | Defined By | ||
|---|---|---|---|
| eventDispatcher : IEventDispatcher [read-only]
The event dispatcher that controls events for this entity. | IPropertyBag | ||
| Method | Defined By | ||
|---|---|---|---|
doesPropertyExist(property:PropertyReference):Boolean
Checks whether a property exists on this entity. | IPropertyBag | ||
getProperty(property:PropertyReference, defaultValue:* = null):*
Gets the value of a property on this entity. | IPropertyBag | ||
setProperty(property:PropertyReference, value:*):void
Sets the value of a property on this entity. | IPropertyBag | ||
| eventDispatcher | property |
eventDispatcher:IEventDispatcher [read-only] The event dispatcher that controls events for this entity. Components should use this to dispatch and listen for events.
public function get eventDispatcher():IEventDispatcher| doesPropertyExist | () | method |
public function doesPropertyExist(property:PropertyReference):BooleanChecks whether a property exists on this entity.
Parameters
property:PropertyReference — The property reference describing the property to look for on
this entity.
|
Boolean — True if the property exists, false otherwise.
|
| getProperty | () | method |
public function getProperty(property:PropertyReference, defaultValue:* = null):*Gets the value of a property on this entity.
Parameters
property:PropertyReference — The property reference describing the property to look for on
this entity.
| |
defaultValue:* (default = null) — If the property is not found, return this value.
|
* — The current value of the property, or null if it doesn't exist.
|
| setProperty | () | method |
public function setProperty(property:PropertyReference, value:*):voidSets the value of a property on this entity.
Parameters
property:PropertyReference — The property reference describing the property to look for on
this entity.
| |
value:* — The value to set on the specified property.
|