W4 Component System

From Ciliz|W4
Revision as of 09:49, 3 August 2020 by Azelenkin (talk | contribs) (Created page with "== Scope == The W4 framework comes with a component system. A component in this case is the ability to extend the functionality of an object without inheritance. System featu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Scope

The W4 framework comes with a component system. A component in this case is the ability to extend the functionality of an object without inheritance.

System features:

  • All components inherit from the base IComponent class.
  • Each component has a unique identifier for its type, by which the component can always be obtained from the container.
  • The container for components is the Node class (see W4 Coordinate system and Node structure).
  • A global list of components is maintained, allowing access to all components of a certain type from anywhere in the application.

IComponent class