group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
Projectile Struct Reference

Component attached to projectile entities. More...

#include <Projectile.hpp>

Public Attributes

WeaponType type = WeaponType::Rifle
 Weapon that spawned this projectile.
 
float damage = 15.f
 Damage dealt on hit.
 
entt::entity owner = entt::null
 Entity that fired this projectile.
 

Detailed Description

Component attached to projectile entities.

Velocity comes from the entity's Velocity component. World position comes from the entity's Position component.

Member Data Documentation

◆ damage

float Projectile::damage = 15.f

Damage dealt on hit.

◆ owner

entt::entity Projectile::owner = entt::null

Entity that fired this projectile.

◆ type

WeaponType Projectile::type = WeaponType::Rifle

Weapon that spawned this projectile.


The documentation for this struct was generated from the following file: