#include <sharedobject.hpp>
◆ SharedStatuses()
| SharedStatuses::SharedStatuses |
( |
| ) |
|
|
default |
◆ addStatus()
| void SharedStatuses::addStatus |
( |
Status |
st, |
|
|
size_t |
len |
|
) |
| |
- Parameters
-
| st | Status to add |
| len | how many ticks it should be active |
◆ DEF_SERIALIZE()
| SharedStatuses::DEF_SERIALIZE |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
◆ getStatusLength()
| size_t SharedStatuses::getStatusLength |
( |
Status |
st | ) |
const |
- Parameters
-
- Returns
- The amount of ticks remaining for a particular status. Returns 0 if the status is not applied
◆ getStatusStrings()
| std::vector< std::string > SharedStatuses::getStatusStrings |
( |
| ) |
const |
For the GUI, returns a list of every status string.
- Returns
- All status strings, or "Unafflicted" if there are no statuses
◆ tickStatus()
| void SharedStatuses::tickStatus |
( |
| ) |
|
counts down all status lengths by one tick
The documentation for this struct was generated from the following files: