R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
rtype::DestroyEvent Struct Reference

An entity disappears, at its last position. More...

#include </__w/project-rtype/project-rtype/protocol/include/rtype/events.hpp>

Public Member Functions

bool operator== (const DestroyEvent &) const =default
 Field-by-field equality.
 

Public Attributes

std::uint32_t tick = 0
 Server tick at which it disappeared.
 
std::uint32_t id = 0
 Network id.
 
DestroyReason reason = DestroyReason::Killed
 Why, which tells the client what to show.
 
float x = 0.0F
 Last position of its center, in logical pixels.
 
float y = 0.0F
 Last position of its center, in logical pixels.
 

Detailed Description

An entity disappears, at its last position.

Member Function Documentation

◆ operator==()

bool rtype::DestroyEvent::operator== ( const DestroyEvent &  ) const
default

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ id

std::uint32_t rtype::DestroyEvent::id = 0

Network id.

◆ reason

DestroyReason rtype::DestroyEvent::reason = DestroyReason::Killed

Why, which tells the client what to show.

◆ tick

std::uint32_t rtype::DestroyEvent::tick = 0

Server tick at which it disappeared.

◆ x

float rtype::DestroyEvent::x = 0.0F

Last position of its center, in logical pixels.

◆ y

float rtype::DestroyEvent::y = 0.0F

Last position of its center, in logical pixels.


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