Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
content.h
Go to the documentation of this file.
1/*
2Minetest
3Copyright (C) 2018 rubenwardy <rw@rubenwardy.com>
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation; either version 2.1 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU Lesser General Public License for more details.
14
15You should have received a copy of the GNU Lesser General Public License along
16with this program; if not, write to the Free Software Foundation, Inc.,
1751 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18*/
19
20#pragma once
21#include "config.h"
22#include "convert_json.h"
23#include "irrlichttypes.h"
24
25enum class ContentType
26{
27 UNKNOWN,
28 MOD,
29 MODPACK,
30 GAME,
31 TXP
32};
33
34
36{
37 std::string type;
38 std::string author;
39 u32 release = 0;
40
42 std::string name;
43
45 std::string title;
46
48 std::string desc;
49 std::string path;
50 std::string textdomain;
51};
52
53
54ContentType getContentType(const std::string &path);
ContentType
Definition content.h:26
ContentType getContentType(const std::string &path)
Definition content.cpp:27
void parseContentInfo(ContentSpec &spec)
Definition content.cpp:44
Definition content.h:36
std::string name
Technical name / Id.
Definition content.h:42
std::string type
Definition content.h:37
std::string author
Definition content.h:38
u32 release
Definition content.h:39
std::string path
Definition content.h:49
std::string textdomain
Definition content.h:50
std::string desc
Short description.
Definition content.h:48
std::string title
Human-readable title.
Definition content.h:45