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 "irrlichttypes.h"
7#include <string>
8
9enum class ContentType
10{
11 UNKNOWN,
12 MOD,
13 MODPACK,
14 GAME,
15 TXP
16};
17
18
20{
21 std::string type;
22 std::string author;
23 u32 release = 0;
24
26 std::string name;
27
29 std::string title;
30
32 std::string desc;
33 std::string path;
34 std::string textdomain;
35};
36
37
38ContentType getContentType(const std::string &path);
ContentType
Definition content.h:10
ContentType getContentType(const std::string &path)
Definition content.cpp:12
void parseContentInfo(ContentSpec &spec)
Definition content.cpp:29
Definition content.h:20
std::string name
Technical name / Id.
Definition content.h:26
std::string type
Definition content.h:21
std::string author
Definition content.h:22
u32 release
Definition content.h:23
std::string path
Definition content.h:33
std::string textdomain
Definition content.h:34
std::string desc
Short description.
Definition content.h:32
std::string title
Human-readable title.
Definition content.h:29