mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00
37 lines
601 B
C++
37 lines
601 B
C++
#ifndef LEGONAMEDPART_H
|
|
#define LEGONAMEDPART_H
|
|
|
|
#include "legolodlist.h"
|
|
#include "mxstring.h"
|
|
|
|
// SIZE 0x14
|
|
class LegoNamedPart {
|
|
public:
|
|
LegoNamedPart(const char* p_name, LegoLODList* p_list)
|
|
{
|
|
m_name = p_name;
|
|
m_list = p_list;
|
|
}
|
|
~LegoNamedPart()
|
|
{
|
|
LegoLODListCursor cursor(m_list);
|
|
LegoLOD* lod;
|
|
|
|
while (cursor.First(lod)) {
|
|
cursor.Detach();
|
|
delete lod;
|
|
}
|
|
|
|
delete m_list;
|
|
}
|
|
|
|
const MxString* GetName() const { return &m_name; }
|
|
LegoLODList* GetList() { return m_list; }
|
|
|
|
private:
|
|
MxString m_name; // 0x00
|
|
LegoLODList* m_list; // 0x04
|
|
};
|
|
|
|
#endif // LEGONAMEDPART_H
|