Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
GunConfig Struct Reference

Gun configuration structure. More...

#include <gun.h>

Public Attributes

Vec2 muzzlePosition
 Position where bullets/muzzle flash appears.
 
Vec2 ejectionPosition
 Position where casings are ejected.
 
Vec2 gripPosition
 Position where the player holds the gun.
 
ParticleEmitter muzzleFlashPreset
 Particle effect for muzzle flash.
 
ParticleEmitter casingPreset
 Particle effect for ejected casings.
 

Detailed Description

Gun configuration structure.

Contains positioning data and particle effect configurations for a gun

Member Data Documentation

◆ casingPreset

ParticleEmitter GunConfig::casingPreset

Particle effect for ejected casings.

◆ ejectionPosition

Vec2 GunConfig::ejectionPosition

Position where casings are ejected.

◆ gripPosition

Vec2 GunConfig::gripPosition

Position where the player holds the gun.

◆ muzzleFlashPreset

ParticleEmitter GunConfig::muzzleFlashPreset

Particle effect for muzzle flash.

◆ muzzlePosition

Vec2 GunConfig::muzzlePosition

Position where bullets/muzzle flash appears.


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