#include <string>
#include <vector>
#include <Windows.h>
#include <bitset>
#include <Strings/components/diagnostics/errors/errors.h>
#include "components/diagnostics/logger/logger.h"
Go to the source code of this file.
|
#define | BLAM |
|
#define | TAG_BLOCK(name, fields) struct name##_entry fields; tag_block<name##_entry> name; |
| Macro designed to aid in the creation of tag class data structures. More...
|
|
#define | TAG_ENUM(name, ...) enum name##_enum __VA_ARGS__; name##_enum name; |
|
#define | TAG_FIELDSET_VERSION 4 |
| Macro defining the tag fieldset version. More...
|
|
|
typedef char | ascii[128] |
| Typedef for an ascii field, used in tag data definitions. More...
|
|
typedef char | stringid[128] |
| Typedef for a stringid field, used in tag data definitions. More...
|
|
◆ BLAM
◆ TAG_BLOCK
#define TAG_BLOCK |
( |
|
name, |
|
|
|
fields |
|
) |
| struct name##_entry fields; tag_block<name##_entry> name; |
Macro designed to aid in the creation of tag class data structures.
- Note
- This macro creates a child data structure within the primary tag structure, and that data structure is named
{name}_entry
, where {name}
refers to what you provide with the name
parameter listed below.
- Parameters
-
name | - The name of the tag block. |
fields | - The fields of the block, should be identical to what would be used when defining a structure, just without struct whatever and with no semicolon after the curly braces. |
◆ TAG_ENUM
#define TAG_ENUM |
( |
|
name, |
|
|
|
... |
|
) |
| enum name##_enum __VA_ARGS__; name##_enum name; |
◆ TAG_FIELDSET_VERSION
#define TAG_FIELDSET_VERSION 4 |
Macro defining the tag fieldset version.
This should be incremented any time a tag field type is changed in such a way that it becomes incompatiable with older tags - such as if a field's size is changed or if the data format is changed significantly.
◆ ascii
Typedef for an ascii field, used in tag data definitions.
◆ stringid
typedef char stringid[128] |
Typedef for a stringid field, used in tag data definitions.
◆ TagOrigin
Enum used to specify a tag's origin.
Enumerator |
---|
BinaryFile | Indicates the tag originated from a binary file.
|
Memory | Indicates the tag originated from the engine's memory.
|
XMLFile | Indicates the tag originated from an XML file.
Currently unsupported.
- Deprecated:
- Will never be supported. Will be removed.
|
CacheFile | Indicates the tag originated from a Blam Cache File (.map).
|