PixelBullet
0.0.1
A C++ game engine
Loading...
Searching...
No Matches
engine
include
pixelbullet
core
version.h
1
#pragma once
2
3
#include <compare>
4
#include <cstdint>
5
#include <string>
6
7
namespace
pixelbullet
8
{
9
struct
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
pixelbullet::Version
Definition
version.h:10
Generated by
1.16.1