SocketComponent class
Pins its entity to a node of its parent's model — a joint, for a sword
in a hand or a hat on a head. The entity must be a child (it has a
ParentComponent) of an entity with a ModelComponent; each update it
is moved to that node, keeping its own scale.
Constructors
- SocketComponent({String node = ''})
-
A socket on the node called
node.
Properties
- componentType → Type
-
Type identifier for this component
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- node ↔ String
-
The node's name in the parent's model.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAttach(
EntityId entityId) → void -
Called when this component is added to an entity.
inherited
-
onDetach(
EntityId entityId) → void -
Called when this component is removed from an entity.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited