Elaztek Developer Hub
Blamite Game Engine - blam!  00388.06.24.23.2301.blamite
The core library for the Blamite Game Engine.
compile_test_1.h
Go to the documentation of this file.
1 // compile_test_1 [cmt1] - Tag Definition //
3 // -------- //
4 // Part of the Blamite Game Engine //
5 // Copyright (c) Elaztek Studios 2013 - 2023 //
7 
8 
9 #pragma once
10 
11 #include <string>
15 
16 #ifndef BLAM
17 #define BLAM
18 #endif
19 
20 #pragma pack(push, 1)
22 {
26  //title
27  /*explanation*/
28 };
29 #pragma pack(pop)
30 
32 {
33 public:
35  {
36  class_name_long = "compile_test_1";
37  class_name_short = "cmt1";
38  version = 0;
39 
40  revisions = {
41 
42  };
43 
44  tag_size = sizeof(60);
45 
46  fields =
47  {
48  new ColorField("color field 0", ""),
49  new DataReferenceField("dataref field 1", ""),
50  new TagReferenceField("tagref field 2", "", { }),
51  new CommentField("title",
52  "explanation"),
53 
54  };
55  }
56 };
57 
58 namespace Blam::Content::Tags
59 {
60  BLAM compile_test_1* GetCompile_test_1Tag(std::string tag_path);
61 }
BLAM
#define BLAM
Definition: compile_test_1.h:17
Blam::Content::Tags
Namespace containing functions related to tag data.
Definition: bitmap.h:151
compile_test_1
Definition: compile_test_1.h:21
DataReferenceField
Class representing a data reference, or dataref for short.
Definition: dataref.h:19
compile_test_1::dataref_field_1
data_reference dataref_field_1
Definition: compile_test_1.h:24
Compile_test_1TagClass::Compile_test_1TagClass
Compile_test_1TagClass()
Definition: compile_test_1.h:34
compile_test_1::color_field_0
color color_field_0
Definition: compile_test_1.h:23
TagReferenceField
Class representing a tag reference, or tagref for short.
Definition: tagref.h:20
BlamTagClass::fields
std::vector< BlamTagClassField * > fields
A series of tag fields that store the layout of the tag.
Definition: tags.h:94
compile_test_1::tagref_field_2
tag_reference tagref_field_2
Definition: compile_test_1.h:25
BlamTagClass::revisions
std::vector< BlamTagClassRevision > revisions
List of all tag class revisions. Does not get written to tags, but is included in plugin files.
Definition: tags.h:92
BlamTagClass::class_name_short
std::string class_name_short
The short, 4-character name of the tag class.
Definition: tags.h:90
BlamTagClass::version
int version
The tag class version. Should be incremented any time a tag class is modified whatsoever.
Definition: tags.h:91
tag_reference
Structure representing a tag reference.
Definition: tags.h:182
BlamTagClass::class_name_long
std::string class_name_long
The longer class name. Typically shown alongside short name for user-friendliness.
Definition: tags.h:89
Blam::Content::Tags::GetTagData
BLAM BlamTagData * GetTagData(std::string tag_path)
Retrieves information for a given tag.
Definition: tags.cpp:80
fields.h
data_reference
Structure representing a data reference.
Definition: tags.h:232
BlamTagClass::tag_size
int tag_size
The size of the tag's data. Used on loading/writing tag files.
Definition: tags.h:96
ColorField
Class representing a color tag field.
Definition: color.h:19
BlamTagData::address
void * address
The address pointing to the start of the tag's data.
Definition: tags.h:33
compile_test_1.h
tagclass.h
tags.h
tags.h
BlamTagData
Class used to contain and access tag data.
Definition: tags.h:30
Blam::Content::Tags::GetCompile_test_1Tag
BLAM compile_test_1 * GetCompile_test_1Tag(std::string tag_path)
Definition: compile_test_1.cpp:13
CommentField
Class representing a comment field.
Definition: comment.h:29
BlamTagClass
Class representing a tag class.
Definition: tags.h:86
Compile_test_1TagClass
Definition: compile_test_1.h:31