Luanti
5.10.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
10
enum class
ContentType
11
{
12
UNKNOWN
,
13
MOD
,
14
MODPACK
,
15
GAME
,
16
TXP
17
};
18
19
20
struct
ContentSpec
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
39
ContentType
getContentType
(
const
std::string &path);
40
void
parseContentInfo
(
ContentSpec
&spec);
config.h
ContentType
ContentType
Definition
content.h:11
ContentType::GAME
@ GAME
ContentType::TXP
@ TXP
ContentType::UNKNOWN
@ UNKNOWN
ContentType::MODPACK
@ MODPACK
ContentType::MOD
@ MOD
getContentType
ContentType getContentType(const std::string &path)
Definition
content.cpp:12
parseContentInfo
void parseContentInfo(ContentSpec &spec)
Definition
content.cpp:29
convert_json.h
irrlichttypes.h
ContentSpec
Definition
content.h:21
ContentSpec::name
std::string name
Technical name / Id.
Definition
content.h:27
ContentSpec::type
std::string type
Definition
content.h:22
ContentSpec::author
std::string author
Definition
content.h:23
ContentSpec::release
u32 release
Definition
content.h:24
ContentSpec::path
std::string path
Definition
content.h:34
ContentSpec::textdomain
std::string textdomain
Definition
content.h:35
ContentSpec::desc
std::string desc
Short description.
Definition
content.h:33
ContentSpec::title
std::string title
Human-readable title.
Definition
content.h:30
content
content.h
Generated on Fri Nov 1 2024 10:48:59 for Luanti by
1.11.0