Elaztek Developer Hub
Blamite Game Engine - blam!  00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
data_reference Struct Reference

Structure representing a data reference. More...

#include <tags.h>

Public Member Functions

std::string GetValueAsString ()
 Retrieves the value of the dataref as a string. More...
 

Public Attributes

char identifier [4] = {'d','r','f','d'}
 Dataref identifier. Will always be drfd. More...
 
char padding0 [4]
 Empty padding. More...
 
void * data_address = nullptr
 The address of the referenced data. More...
 
int data_size = 0
 The size of the referenced data. More...
 
char value_hint [4]
 The value hint providing context on what type of data is stored. Used in Editing Kit. More...
 
char padding1 [8]
 Empty padding. More...
 

Detailed Description

Structure representing a data reference.

Data references allow for tags to store variable-sized, arbitrary data. This data can be anything from a string of text, audio data, or anything else that requires the storage of generic data within a tag.

Member Function Documentation

◆ GetValueAsString()

std::string data_reference::GetValueAsString ( )

Retrieves the value of the dataref as a string.

Returns
The value of the dataref, as a string.
+ Here is the caller graph for this function:

Member Data Documentation

◆ data_address

void* data_reference::data_address = nullptr

The address of the referenced data.

◆ data_size

int data_reference::data_size = 0

The size of the referenced data.

◆ identifier

char data_reference::identifier[4] = {'d','r','f','d'}

Dataref identifier. Will always be drfd.

◆ padding0

char data_reference::padding0[4]

Empty padding.

◆ padding1

char data_reference::padding1[8]

Empty padding.

◆ value_hint

char data_reference::value_hint[4]

The value hint providing context on what type of data is stored. Used in Editing Kit.


The documentation for this struct was generated from the following files: