-
Notifications
You must be signed in to change notification settings - Fork 0
Core: Quill Class
The feather class is the equivalent of a node. It is the basis for every object in our application. Feathers are recursive and nest inside themselves to "feather" our application. Feathers also use an instance of the Quill class. Quill's contain and manage all components attached to the feather.
Quill()
Creates an object with the optional quill parameter.
feather -> Feather
The feather this quill is attached too.
components -> List<Component>
The list of components attached to this quill.
init() -> void
Initializes all components.
destroy() -> void
Destroys all components, followed by nested feathers.
load() -> void
Loads all components, followed by nested feathers.
unload() -> void
Unloads all components.
input(Event event) -> void
Handles input for all components.
update(Time time) -> void
Updates all components.
render(Context context) -> void
Renders all components.
addComponent(T component) -> T extends Component
Adds a component by class name using . This method will also return the newly added Component.
removeComponent() -> void
Remove a component by .
getComponent() -> T extends Component
Returns if it exists.
setFeather(Feather feather) -> void
Sets the feather.