Lodestone.Level
Loading...
Searching...
No Matches
Material.h
Go to the documentation of this file.
1//
2// Created by DexrnZacAttack on 10/14/25 using zPc-i2.
3//
4#ifndef LODESTONE_MATERIAL_H
5#define LODESTONE_MATERIAL_H
6
9
12 public:
13 constexpr Material(const types::Color &color) : m_color(color) {};
14
15 template <typename... Args>
16 explicit constexpr Material(Args&&... args) : m_color(std::forward<Args>(args)...) {}
17
18 constexpr const types::Color &getColor() const { return m_color; }
19
20 std::string toString() const override {
21 return "Material[color=" + m_color.toString() + "]";
22 };
23
24 private:
26 };
27} // namespace lodestone::level::material
28
29#endif // LODESTONE_MATERIAL_H
std::string toString() const override
Definition Material.h:20
constexpr const types::Color & getColor() const
Definition Material.h:18
constexpr Material(Args &&... args)
Definition Material.h:16
constexpr Material(const types::Color &color)
Definition Material.h:13
const types::Color m_color
Definition Material.h:25
Definition Material.cpp:6
STL namespace.
Definition Color.h:13