hestia-rsps / hestia

An open-source Kotlin game server.
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

Should Widgets be entities? - Artemis Queues #43

Closed GregHib closed 4 years ago

GregHib commented 4 years ago

Can multiple of the same component be added to a single entity? If so, is that order consistent?

Both Widgets & Dialogues could be a horizontal queue or vertical stack does that make sense as entities though as it's on a per player basis?

GregHib commented 4 years ago

An entity can only have one of each component.

Dialogues will need a queue inside of a component: queue: LinkedList<SuspendingCoroutine> Which will need it's own system for addition and removal but it doesn't make sense to handle these as entities.

The current widget system is functional and there's no reason to rewrite it at this point in time.