2023-08-16 13:09:44 -04:00
|
|
|
#include "mxatomidcounter.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-08-16 13:09:44 -04:00
|
|
|
#include "decomp.h"
|
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(MxAtomIdCounter, 0x14);
|
|
|
|
DECOMP_SIZE_ASSERT(MxAtomIdCounterSet, 0x10);
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100ad7f0
|
2023-08-16 13:09:44 -04:00
|
|
|
void MxAtomIdCounter::Inc()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
m_value++;
|
2023-08-16 13:09:44 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100ad800
|
2023-08-16 13:09:44 -04:00
|
|
|
void MxAtomIdCounter::Dec()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
if (m_value)
|
|
|
|
m_value--;
|
2023-08-16 13:09:44 -04:00
|
|
|
}
|