Components are plain data structures (classes or structs) that contain data relevant to a specific aspect of an entity. They don’t have any logic or methods. Examples of components could be a “Position” component containing x, y, z coordinates.

Create a Position component with

bolt component position

which will add a new component to your workspace:

use bolt_lang::*;


pub struct Position {
    pub x: i64,
    pub y: i64,
    pub z: i64,