![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
Class representing an enum tag field. More...
#include <enum.h>
Inheritance diagram for EnumField:
Collaboration diagram for EnumField:Public Member Functions | |
| EnumField (BlamTagFieldType _type, std::string _display_name, std::string _extra_info, std::vector< std::string > _options) | |
| void | ShowImPropertyControl () |
| Shows a set of ImGUI controls representing the tag field. More... | |
| std::string | GetFieldXMLString (int offset) |
| Generates a string representing an XML node associated with this tag field, used for generating plugin files. More... | |
Public Member Functions inherited from BlamTagClassField | |
| BlamTagClassField (BlamTagFieldType _type, std::string _display_name, std::string _extra_info) | |
| BlamTagClassField (BlamTagFieldType _type, std::string _display_name, std::string _extra_info, std::string _valid_input_label) | |
| virtual void | SetMemoryLocation (void *new_address) |
| Sets the address of the data that the plugin field should display. More... | |
Additional Inherited Members | |
Public Attributes inherited from BlamTagClassField | |
| std::string | display_name |
| The display name of the tag field. More... | |
| std::string | extra_info |
| Additional information to show alongside the field. More... | |
| std::string | input_hint |
| A label specifying possible valid input. Not always shown. More... | |
| bool | visible = true |
| Whether or not this field should be marked as visible within the editor. More... | |
| void * | read_address |
| The address of the data the field is currently representing. More... | |
| int | read_length |
| How many bytes to read from the start of the address. More... | |
| BlamTagFieldType | type |
| The type of the field. More... | |
Class representing an enum tag field.
Enumerator fields allow for the selection of a specific option. In memory and tag files, enum field values are stored as their index in the enumerator, and take up 4 bytes in memory.
| EnumField::EnumField | ( | BlamTagFieldType | _type, |
| std::string | _display_name, | ||
| std::string | _extra_info, | ||
| std::vector< std::string > | _options | ||
| ) |
Here is the call graph for this function:
|
virtual |
Generates a string representing an XML node associated with this tag field, used for generating plugin files.
If this function is not overridden in the child class, the resulting string describes an unknown tag field.
| offset | - The offset of this field relative to either the start of the tag data, or relative to the start of tag block entry data. |
Reimplemented from BlamTagClassField.
|
virtual |
Shows a set of ImGUI controls representing the tag field.
If this function is not overridden in the child class, a warning message is displayed instead.
Reimplemented from BlamTagClassField.
Here is the call graph for this function:
Here is the caller graph for this function: