Module elementalist::player::bundle
source · Structs
- Player is a marker component for the player. This is used to identify the player’s entity in queries and systems. This should be used instead of using the
PlayerAvatarcomponent directly, as it allows for more flexibility in the future. PlayerBundleis a bundle of components that are used to create the player’s entity. This is used to spawn the player’s entity in the game. They are a set of components that are integral to the player and we want to ensure that they are always present when the player is spawned.
Constants
- Base health for the player. Specified outside of
base_statsbecause it’s an integer. - Base mana for the player. Specified outside of
base_statsbecause it’s an integer.
Functions
- Base stats for the player. These are the stats that the player starts with, and are used to initiate the
StatBundlefor the player.