PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
version.h
1#pragma once
2
3#include <compare>
4#include <cstdint>
5#include <string>
6
7namespace pixelbullet
8{
9struct Version
10{
11 std::uint32_t major = 0;
12 std::uint32_t minor = 0;
13 std::uint32_t patch = 0;
14
15 [[nodiscard]] std::string to_string() const
16 {
17 return std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(patch);
18 }
19
20 [[nodiscard]] bool operator==(const Version&) const noexcept = default;
21 [[nodiscard]] auto operator<=>(const Version&) const noexcept = default;
22};
23} // namespace pixelbullet
Definition version.h:10