Limo
A simple mod manager
Loading...
Searching...
No Matches
modinfo.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include "mod.h"
9#include <filesystem>
10#include <string>
11
12
17struct ModInfo
18{
22 std::vector<std::string> deployers;
24 std::vector<int> deployer_ids;
26 std::vector<bool> deployer_statuses;
28 int group = -1;
32 std::vector<std::string> manual_tags;
34 std::vector<std::string> auto_tags;
35
55 ModInfo(int id,
56 const std::string& name,
57 const std::string& version,
58 const std::time_t& install_time,
59 const std::filesystem::path& local_source,
60 const std::string& remote_source,
61 const std::time_t& remote_update_time,
62 unsigned long size,
63 const std::time_t& suppress_time,
64 const std::vector<std::string>& deployer_names,
65 const std::vector<int>& deployer_ids,
66 const std::vector<bool>& statuses,
67 int group,
68 bool is_active_member,
69 const std::vector<std::string>& man_tags,
70 const std::vector<std::string>& au_tags) :
71 mod(id,
72 name,
73 version,
74 install_time,
75 local_source,
76 remote_source,
77 remote_update_time,
78 size,
79 suppress_time),
80 deployers(std::move(deployer_names)), deployer_ids(std::move(deployer_ids)),
81 deployer_statuses(statuses), group(group), is_active_group_member(is_active_member),
82 manual_tags(man_tags), auto_tags(au_tags)
83 {}
84};
uint32_t version
Archive format version.
Definition lspakheader.h:3
Contains the Mod struct.
Stores information about an installed mod.
Definition mod.h:17
std::vector< bool > deployer_statuses
The mods activation status for every deployer it belongs to.
Definition modinfo.h:26
std::vector< std::string > manual_tags
Contains the names of all manual tags added to this mod.
Definition modinfo.h:32
int group
Group this mod belongs to. If == -1: Mod belongs to no group.
Definition modinfo.h:28
std::vector< std::string > auto_tags
Contains the names of all auto tags added to this mod.
Definition modinfo.h:34
ModInfo(int id, const std::string &name, const std::string &version, const std::time_t &install_time, const std::filesystem::path &local_source, const std::string &remote_source, const std::time_t &remote_update_time, unsigned long size, const std::time_t &suppress_time, const std::vector< std::string > &deployer_names, const std::vector< int > &deployer_ids, const std::vector< bool > &statuses, int group, bool is_active_member, const std::vector< std::string > &man_tags, const std::vector< std::string > &au_tags)
Constructor. Simply initializes members.
Definition modinfo.h:55
bool is_active_group_member
If true: Mod is the active member of its group.
Definition modinfo.h:30
Mod mod
Contains information about the mod itself.
Definition modinfo.h:20
std::vector< std::string > deployers
Names of all deployers the mod belongs to.
Definition modinfo.h:22
std::vector< int > deployer_ids
Ids of all deployers the mod belongs to.
Definition modinfo.h:24