Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
GameImportData.hpp
Go to the documentation of this file.
1//
2// Created by kj16609 on 6/5/23.
3//
4
5#pragma once
6#ifndef ATLASGAMEMANAGER_GAMEIMPORTDATA_HPP
7#define ATLASGAMEMANAGER_GAMEIMPORTDATA_HPP
8
9#include <QString>
10
11#include <filesystem>
12
17
19{
20 std::filesystem::path relative_path;
21 QString title;
22 QString creator;
23 QString engine;
24 QString version;
25 std::size_t size;
26 std::uint64_t file_count;
28 std::vector< std::filesystem::path > executables;
30 std::filesystem::path executable;
31 std::array< QString, BannerType::SENTINEL > banners;
32 std::vector< QString > previews;
33
34 //GL Info
36
37 //Remote information
41
43 std::filesystem::path path_in,
44 QString title_in,
45 QString creator_in,
46 QString engine_in,
47 QString version_in,
48 const std::size_t size_in,
49 const std::uint64_t file_count_in,
50 std::vector< std::filesystem::path > executables_in,
51 std::filesystem::path executable_in,
52 std::array< QString, BannerType::SENTINEL > banners_in,
53 std::vector< QString > previews_in,
54 gl::GameListInfos gl_info_in,
55 RecordID record_id_in,
56 AtlasID atlas_id_in ) :
57 relative_path( std::move( path_in ) ),
58 title( std::move( title_in ) ),
59 creator( std::move( creator_in ) ),
60 engine( std::move( engine_in ) ),
61 version( std::move( version_in ) ),
62 size( size_in ),
63 file_count( file_count_in ),
64 executables( std::move( executables_in ) ),
65 executable( std::move( executable_in ) ),
66 banners( std::move( banners_in ) ),
67 previews( std::move( previews_in ) ),
68 infos( gl_info_in ),
69 game_id( record_id_in ),
70 atlas_id( atlas_id_in ),
72 {}
73
74 GameImportData() = delete;
75 GameImportData( GameImportData&& other ) = default;
76 GameImportData( const GameImportData& other ) = default;
77 GameImportData& operator=( const GameImportData& other ) = default;
78};
79
80#endif //ATLASGAMEMANAGER_GAMEIMPORTDATA_HPP
constexpr RecordID INVALID_RECORD_ID
Definition Types.hpp:15
std::uint32_t RecordID
Definition Types.hpp:11
std::uint64_t AtlasID
Definition Types.hpp:12
Definition banners.cpp:15
Definition Column.hpp:15
QString creator
Definition GameImportData.hpp:22
RecordID game_id
Definition GameImportData.hpp:38
GameImportData(const GameImportData &other)=default
std::filesystem::path executable
Non relative path to executable.
Definition GameImportData.hpp:30
std::uint64_t file_count
Definition GameImportData.hpp:26
bool conflicting_version
Definition GameImportData.hpp:40
GameImportData & operator=(const GameImportData &other)=default
std::size_t size
Definition GameImportData.hpp:25
GameImportData(std::filesystem::path path_in, QString title_in, QString creator_in, QString engine_in, QString version_in, const std::size_t size_in, const std::uint64_t file_count_in, std::vector< std::filesystem::path > executables_in, std::filesystem::path executable_in, std::array< QString, BannerType::SENTINEL > banners_in, std::vector< QString > previews_in, gl::GameListInfos gl_info_in, RecordID record_id_in, AtlasID atlas_id_in)
Definition GameImportData.hpp:42
GameImportData(GameImportData &&other)=default
QString engine
Definition GameImportData.hpp:23
gl::GameListInfos infos
Definition GameImportData.hpp:35
QString title
Definition GameImportData.hpp:21
GameImportData()=delete
std::vector< QString > previews
Definition GameImportData.hpp:32
std::filesystem::path relative_path
Definition GameImportData.hpp:20
std::array< QString, BannerType::SENTINEL > banners
Definition GameImportData.hpp:31
AtlasID atlas_id
Definition GameImportData.hpp:39
std::vector< std::filesystem::path > executables
Non relative path to possible executables.
Definition GameImportData.hpp:28
QString version
Definition GameImportData.hpp:24
Definition utils.hpp:17