Elaztek Developer Hub
Blamite Game Engine - blam!  00368.02.12.23.1347.blamite
The core library for the Blamite Game Engine.
block.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #include "../BlamPluginField.h"
6 #include "../../tags.h"
7 
14 {
15 private:
16  float indent = 22.0f;
17 
18 public:
19  std::vector<BlamPluginField*> block_template;
20  int active_entry = 0;
22 
23  int entry_size = 0;
24 
25  BlockField(int _entry_size, std::string _display_name, std::string _extra_info, std::vector<BlamPluginField*> _block_template);
26 
27  void SetMemoryLocation(void* new_address);
28 
29  std::string GetFieldXMLString(int offset);
30 
31  void ShowImPropertyControl();
32 };
BlockField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: block.cpp:42
tag_block< void >
BlockField::entry_size
int entry_size
The size of each block entry.
Definition: block.h:23
BlockField::active_entry
int active_entry
The index of the active entry.
Definition: block.h:20
BlamPluginField
Base class representing a plugin field.
Definition: BlamPluginField.h:50
BlockField::BlockField
BlockField(int _entry_size, std::string _display_name, std::string _extra_info, std::vector< BlamPluginField * > _block_template)
Definition: block.cpp:8
BlockField::GetFieldXMLString
std::string GetFieldXMLString(int offset)
Generates a string representing an XML node associated with this tag field, used for generating plugi...
Definition: block.cpp:22
BlockField::block_info
tag_block< void > * block_info
Pointer to the current block info being represented.
Definition: block.h:21
BlockField::SetMemoryLocation
void SetMemoryLocation(void *new_address)
Sets the address of the data that the plugin field should display.
Definition: block.cpp:17
BlockField
Class representing a tag block field, also sometimes referred to as a struct or reflexive in the modd...
Definition: block.h:13
BlockField::block_template
std::vector< BlamPluginField * > block_template
The list of block entries in this block.
Definition: block.h:19