Component - Team-Innis/UtH-Engine GitHub Wiki

Components are one of the corner stones of UtH-Engine. They can be used in a self-contained manner to define the fundamentals of your game's mechanics and aesthetics.


General usage

Component is an abstract class that doesn't do much anything on its own. To add functionality, one must derive their own class from Component and override the virtual methods:

  • Init - Called when the component is initialized.
  • Update - Called during the GameObject's update function.
  • Draw - Called during the GameObject's draw function.

These functions will be called when their respective functions are called for the object the component is bound to.


Ready-made components

There are several components inside the engine which you can use to enable some basic features. Here's a list of the currently available components: