Meliora Islands' Entities

The world of Meliora Islands contains a lot of different objects that can change state over time, with interactions of the player or because a server demands it. The abstract entity system allowed us to create placeable buildings and decorations, containers for items and the wildlife and enemies themselves.

Decorations

Decorations are the simplest example. The player can craft an object and place them in the world. The abstraction takes care of the networking of position, rotation and which decoration is placed.

Meliora Islands Entities

Buildings

Buildings are placed the same way, but need an additional component to interact with. Buildings are placed as ghosts and players are required to give resources before using a hammer. By simply adding an EntityComponent, the entity is synced on the network and the component can handle different logic. In the game's case, it can handle resources and progress.

Meliora Islands Entities