导出数据转spine
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
namespace dts {
|
||||
|
||||
struct SpineVersion {
|
||||
int major = 0;
|
||||
int minor = 0;
|
||||
int patch = 0;
|
||||
bool hasPatch = false;
|
||||
|
||||
[[nodiscard]] static std::optional<SpineVersion> parse(std::string_view text);
|
||||
[[nodiscard]] std::string line() const;
|
||||
[[nodiscard]] std::string toString() const;
|
||||
[[nodiscard]] bool isSupported() const;
|
||||
|
||||
friend bool operator==(const SpineVersion&, const SpineVersion&) = default;
|
||||
};
|
||||
|
||||
} // namespace dts
|
||||
|
||||
Reference in New Issue
Block a user