Line 89: |
Line 89: |
| { | | { |
| public: | | public: |
− | __thiscall CMwId(void); // Initializes the ID with the value -1 (Unassigned) | + | __thiscall CMwId(void); // Initializes the ID with the value -1 (Unassigned). |
− | __thiscall CMwId(class CMwId const &); // Initializes the id with the ID of the passed class | + | __thiscall CMwId(class CMwId const &); // Initializes the id with the ID of the passed class. |
| __thiscall ~CMwId(void); | | __thiscall ~CMwId(void); |
| | | |
− | static class CMwId * Unassigned; // Points to the first entry in the table (Unassigned) | + | static class CMwId * Unassigned; // Points to the first entry in the table (Unassigned). |
| static void __cdecl StaticInit(void); // Called from CGbxApp::Init. Creates the name table. Creates a first ID with the value -1 (Unassigned) and adds it to the table. | | static void __cdecl StaticInit(void); // Called from CGbxApp::Init. Creates the name table. Creates a first ID with the value -1 (Unassigned) and adds it to the table. |
| static void __cdecl StaticRelease(void); // Called from CGbxApp::Destroy. Releases the name table. | | static void __cdecl StaticRelease(void); // Called from CGbxApp::Destroy. Releases the name table. |
Line 105: |
Line 105: |
| void __thiscall SetLocalName(class CFastStringInt const &); // Calls CFastStringInt::GetUtf8 and than SetLocalName. | | void __thiscall SetLocalName(class CFastStringInt const &); // Calls CFastStringInt::GetUtf8 and than SetLocalName. |
| | | |
− | char const * __thiscall GetString(void)const; // Gets the string to the ID if bit 30 or 31 is set; otherwise, NULL is returned. | + | char const * __thiscall GetString(void)const; // Gets the string of the ID if bit 30 or 31 is set; otherwise, NULL is returned. |
| | | |
| void __thiscall GetName(class CFastString &)const; // Returns either the name of the ID using GetString, "Unassigned" if the ID is -1 or "Id<number>" if ID represents a number. | | void __thiscall GetName(class CFastString &)const; // Returns either the name of the ID using GetString, "Unassigned" if the ID is -1 or "Id<number>" if ID represents a number. |
Line 114: |
Line 114: |
| | | |
| private: | | private: |
− | static struct SMwIdInternal * s_NameTable; // Points to the name table | + | static struct SMwIdInternal * s_NameTable; // Points to the name table. |
− | static unsigned long __cdecl AddName(char const *); // Adds the name to the name table | + | static unsigned long __cdecl AddName(char const *); // Adds the name to the name table. |
| static void __cdecl DeleteArchiveUserData(class CClassicArchive *); | | static void __cdecl DeleteArchiveUserData(class CClassicArchive *); |
| }; | | }; |
Line 141: |
Line 141: |
| __thiscall ~SGameCtnIdentifier(void); | | __thiscall ~SGameCtnIdentifier(void); |
| | | |
− | int __thiscall operator==(struct SGameCtnIdentifier const &)const; // Compates the first two IDs of the Ident | + | int __thiscall operator==(struct SGameCtnIdentifier const &)const; // Compates the first two IDs of the Ident. |
− | static int __cdecl sCompareCollectionAndId(struct SGameCtnIdentifier const *, struct SGameCtnIdentifier const *); // Compates the names of the first two IDs of the Ident using CMwId::GetName | + | static int __cdecl sCompareCollectionAndId(struct SGameCtnIdentifier const *, struct SGameCtnIdentifier const *); // Compates the names of the first two IDs of the Ident using CMwId::GetName. |
| | | |
| void __thiscall Archive(class CClassicArchive &); // Serializes the Ident. See "[[GBX#Primitives|meta]]" on the [[GBX]] page for details. | | void __thiscall Archive(class CClassicArchive &); // Serializes the Ident. See "[[GBX#Primitives|meta]]" on the [[GBX]] page for details. |