group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
ShotEvent.hpp File Reference

Wire-format particle effect event broadcast from server to all clients. More...

#include "ecs/components/Projectile.hpp"
#include <entt/entt.hpp>
#include <glm/vec3.hpp>
Include dependency graph for ShotEvent.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NetParticleEvent
 Wire-format particle event broadcast from server to all clients. More...
 

Enumerations

enum class  ParticleEffectType : uint8_t {
  BulletTracer , HitscanBeam , Impact , Explosion ,
  Smoke
}
 Type of particle effect to spawn on the client. More...
 

Detailed Description

Wire-format particle effect event broadcast from server to all clients.

Enumeration Type Documentation

◆ ParticleEffectType

enum class ParticleEffectType : uint8_t
strong

Type of particle effect to spawn on the client.

Enumerator
BulletTracer 

pos1=origin, pos2=direction, param=distance

HitscanBeam 

pos1=origin, pos2=hitPos, weaponType

Impact 

pos1=position, pos2=normal, surfaceType, weaponType

Explosion 

pos1=position, param=blastRadius

Smoke 

pos1=position, param=radius