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
9
enum class
ContentType
10
{
11
UNKNOWN
,
12
MOD
,
13
MODPACK
,
14
GAME
,
15
TXP
16
};
17
18
19
struct
ContentSpec
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
38
ContentType
getContentType
(
const
std::string &path);
39
void
parseContentInfo
(
ContentSpec
&spec);
ContentType
ContentType
Definition
content.h:10
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
irrlichttypes.h
ContentSpec
Definition
content.h:20
ContentSpec::name
std::string name
Technical name / Id.
Definition
content.h:26
ContentSpec::type
std::string type
Definition
content.h:21
ContentSpec::author
std::string author
Definition
content.h:22
ContentSpec::release
u32 release
Definition
content.h:23
ContentSpec::path
std::string path
Definition
content.h:33
ContentSpec::textdomain
std::string textdomain
Definition
content.h:34
ContentSpec::desc
std::string desc
Short description.
Definition
content.h:32
ContentSpec::title
std::string title
Human-readable title.
Definition
content.h:29
content
content.h
Generated on Sat Feb 1 2025 10:20:55 for Luanti by
1.11.0