Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
content.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2018 rubenwardy <rw@rubenwardy.com>
4
5#pragma once
6#include "config.h"
7#include "convert_json.h"
8#include "irrlichttypes.h"
9
10enum class ContentType
11{
12 UNKNOWN,
13 MOD,
14 MODPACK,
15 GAME,
16 TXP
17};
18
19
21{
22 std::string type;
23 std::string author;
24 u32 release = 0;
25
27 std::string name;
28
30 std::string title;
31
33 std::string desc;
34 std::string path;
35 std::string textdomain;
36};
37
38
39ContentType getContentType(const std::string &path);
ContentType
Definition content.h:11
ContentType getContentType(const std::string &path)
Definition content.cpp:12
void parseContentInfo(ContentSpec &spec)
Definition content.cpp:29
Definition content.h:21
std::string name
Technical name / Id.
Definition content.h:27
std::string type
Definition content.h:22
std::string author
Definition content.h:23
u32 release
Definition content.h:24
std::string path
Definition content.h:34
std::string textdomain
Definition content.h:35
std::string desc
Short description.
Definition content.h:33
std::string title
Human-readable title.
Definition content.h:30