Overview
Component is a lightweight, extendable class in RareEngine2 designed to modularize game object behavior.
It allows developers to attach reusable logic to GameObject
instances.
Field Summary
boolean isEnabled
Indicates whether the component is active. Disabled components won't receive lifecycle calls.
Method Summary
void start(GameObject o, GameView gv)
Called once when the component is first attached or initialized. Ideal for setup logic.
void update(GameObject o, GameView gv)
Called every frame before rendering. Core behavior logic should be placed here.
void destroy(GameObject o, GameView gv)
Called when the component is removed or the object is destroyed. Use it for cleanup tasks.