CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Text.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "Resource.hpp"
11
12namespace CeresEngine {
13
14 class Text : public TResource<Text> {
15 private:
18
19 public:
21
22 public:
25
28
29 public: // Reflection
32 template<typename Processor> static constexpr void reflect(Processor&& RTTI) {
35 }
36 };
37
38} // namespace CeresEngine
39
40
#define CE_REFL_DATA_GETSET(N, G, S)
Definition Macros.hpp:549
#define CE_REFL_BASE(T)
Definition Macros.hpp:555
A base class that all resources must extend from.
Definition Resource.hpp:186
Utility template class that can be extended by Resources to automatically implement methods that are ...
Definition Resource.hpp:272
TResource(ResourceData &data, InputStream &dataStream)
Definition Resource.hpp:295
Definition Text.hpp:14
String mContent
The text content string.
Definition Text.hpp:17
void setContent(const String &content)
The text content string.
const String & getContent() const noexcept
The text content string.
Definition Text.hpp:24
static constexpr void reflect(Processor &&RTTI)
Executes the given processor for every field of the struct.
Definition Text.hpp:32
Definition Application.hpp:19
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25