mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
f50b771fff
* Push changes * fixes * Implement Infocenter::HandleEndAction * match Infocenter::StopCutScene * implement Infocenter::HandleKeyPress * fixes * Update infocenter.cpp * Update legoworld.cpp * use enums * WIP Fixes * Fix * Fix * Fix * Rename function * Change enum * Update enums * Refactor another enum * Refactor MxDSType * Refactor HashTableOpt * Fixes * Refactor tickle enum * Update other enums * Add EnumConstantName to ncc * Move enum to global namespace * Rename enum --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
37 lines
845 B
C++
37 lines
845 B
C++
#ifndef MXATOMID_H
|
|
#define MXATOMID_H
|
|
|
|
#include "mxatomidcounter.h"
|
|
#include "mxtypes.h"
|
|
|
|
enum LookupMode {
|
|
e_exact = 0,
|
|
e_lowerCase,
|
|
e_upperCase,
|
|
e_lowerCase2,
|
|
};
|
|
|
|
// SIZE 0x04
|
|
class MxAtomId {
|
|
public:
|
|
__declspec(dllexport) MxAtomId(const char*, LookupMode);
|
|
__declspec(dllexport) MxAtomId& operator=(const MxAtomId& p_atomId);
|
|
__declspec(dllexport) ~MxAtomId();
|
|
|
|
MxAtomId() { this->m_internal = 0; }
|
|
|
|
inline MxBool operator==(const MxAtomId& p_atomId) const { return this->m_internal == p_atomId.m_internal; }
|
|
inline MxBool operator!=(const MxAtomId& p_atomId) const { return this->m_internal != p_atomId.m_internal; }
|
|
|
|
void Clear();
|
|
|
|
const char* GetInternal() const { return m_internal; }
|
|
|
|
private:
|
|
MxAtomIdCounter* GetCounter(const char*, LookupMode);
|
|
void Destroy();
|
|
|
|
const char* m_internal; // 0x00
|
|
};
|
|
|
|
#endif // MXATOMID_H
|