|
R-Type
Networked shoot'em up built on Aegis2D
|
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. | |
An entity disappears, at its last position.
|
default |
Field-by-field equality.
true if every field is equal. | std::uint32_t rtype::DestroyEvent::id = 0 |
Network id.
| DestroyReason rtype::DestroyEvent::reason = DestroyReason::Killed |
Why, which tells the client what to show.
| std::uint32_t rtype::DestroyEvent::tick = 0 |
Server tick at which it disappeared.
| float rtype::DestroyEvent::x = 0.0F |
Last position of its center, in logical pixels.
| float rtype::DestroyEvent::y = 0.0F |
Last position of its center, in logical pixels.