Component API #1

Open
opened 2023-03-11 07:30:54 +00:00 by TheCurle · 2 comments
Owner

Components need to:

  • Have a state
  • Be initializable at a future time
  • Be unloadable at an arbitrary time
  • Have an ID
  • Have an Entity owner
Components need to: - Have a state - Be initializable at a future time - Be unloadable at an arbitrary time - Have an ID - Have an Entity owner
TheCurle added this to the Entity-Component-System System. project 2023-03-11 07:30:54 +00:00
Author
Owner
/**
 * A Component is a part of an Entity that stores and manages data.
 * This data is held separately from the Entity that requests it.
 *
 * Components can be Spatial (ie. Position, Rotation).
 * Components can also be Visual (ie. Mesh, Collider).
 * Components are part of the larger Entity-Component-System architecture.
 *
 * Systems operate over these Components.
 * Entities may have their own Systems, and each Scene has its own set of global Systems.
 * Components may be registered to only one of these.
 *
 * EntityComponent classes are not singleton; new EntityComponent(..) is valid.
 *
 */
/** * A Component is a part of an Entity that stores and manages data. * This data is held separately from the Entity that requests it. * * Components can be Spatial (ie. Position, Rotation). * Components can also be Visual (ie. Mesh, Collider). * Components are part of the larger Entity-Component-System architecture. * * Systems operate over these Components. * Entities may have their own Systems, and each Scene has its own set of global Systems. * Components may be registered to only one of these. * * EntityComponent classes are not singleton; new EntityComponent(..) is valid. * */
TheCurle added reference curle/ecs 2023-03-11 07:43:59 +00:00
Author
Owner

A draft of this API is implemented in 33b27fc9a1.

A draft of this API is implemented in 33b27fc9a1.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TheCurle/umbra#1
No description provided.