Luanti
5.11.0-dev
▼
Luanti
The Minetest engine internal documentation
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
►
benchmark
►
client
▼
content
►
content.cpp
►
content.h
mod_configuration.cpp
►
mod_configuration.h
►
mods.cpp
►
mods.h
►
subgames.cpp
►
subgames.h
►
database
doc
►
gui
►
irrlicht_changes
►
mapgen
►
network
►
script
►
server
►
threading
►
unittest
►
util
►
activeobject.h
►
activeobjectmgr.h
►
catch.cpp
►
catch.h
chat.cpp
►
chat.h
►
chat_interface.h
►
chatmessage.h
►
particles.cpp
►
sound.h
clientdynamicinfo.cpp
►
clientdynamicinfo.h
►
collision.cpp
►
collision.h
►
config.h
►
constants.h
►
content_mapnode.cpp
►
content_mapnode.h
►
content_nodemeta.cpp
►
content_nodemeta.h
►
convert_json.cpp
►
convert_json.h
►
craftdef.cpp
►
craftdef.h
►
daynightratio.h
►
debug.cpp
►
debug.h
►
defaultsettings.cpp
►
defaultsettings.h
►
dummygamedef.h
►
dummymap.h
emerge.cpp
►
emerge.h
►
emerge_internal.h
►
environment.cpp
►
environment.h
►
exceptions.h
face_position_cache.cpp
►
face_position_cache.h
►
filesys.cpp
►
filesys.h
►
gamedef.h
►
gameparams.h
►
gettext.cpp
►
gettext.h
►
gettext_plural_form.cpp
►
gettext_plural_form.h
►
gettime.h
►
httpfetch.cpp
►
httpfetch.h
►
hud.cpp
►
hud.h
►
inventory.cpp
►
inventory.h
►
inventorymanager.cpp
►
inventorymanager.h
►
irr_aabb3d.h
►
irr_gui_ptr.h
►
irr_v2d.h
►
irr_v3d.h
►
irrlichttypes.h
irrlichttypes_bloated.h
irrlichttypes_extrabloated.h
►
itemdef.cpp
►
itemdef.h
►
itemgroup.h
►
itemstackmetadata.cpp
►
itemstackmetadata.h
json-forwards.h
light.cpp
►
light.h
►
lighting.h
►
log.cpp
►
log.h
►
log_internal.h
►
main.cpp
►
map.cpp
►
map.h
map_settings_manager.cpp
►
map_settings_manager.h
►
mapblock.cpp
►
mapblock.h
►
mapnode.cpp
►
mapnode.h
mapsector.cpp
►
mapsector.h
metadata.cpp
►
metadata.h
►
migratesettings.h
►
modchannels.cpp
►
modchannels.h
►
modifiedstate.h
nameidmapping.cpp
►
nameidmapping.h
►
nodedef.cpp
►
nodedef.h
nodemetadata.cpp
►
nodemetadata.h
nodetimer.cpp
►
nodetimer.h
►
noise.cpp
►
noise.h
objdef.cpp
►
objdef.h
►
object_properties.cpp
►
object_properties.h
►
particles.h
►
pathfinder.cpp
►
pathfinder.h
►
player.cpp
►
player.h
►
porting.cpp
►
porting.h
►
porting_android.cpp
►
porting_android.h
►
profiler.cpp
►
profiler.h
►
raycast.cpp
►
raycast.h
reflowscan.cpp
►
reflowscan.h
remoteplayer.cpp
►
remoteplayer.h
rollback_interface.cpp
►
rollback_interface.h
►
serialization.cpp
►
serialization.h
►
server.cpp
►
server.h
►
serverenvironment.cpp
►
serverenvironment.h
►
servermap.cpp
►
servermap.h
►
settings.cpp
►
settings.h
►
settings_translation_file.cpp
►
skyparams.h
staticobject.cpp
►
staticobject.h
terminal_chat_console.cpp
►
terminal_chat_console.h
►
texture_override.cpp
►
texture_override.h
tileanimation.cpp
►
tileanimation.h
►
tool.cpp
►
tool.h
►
translation.cpp
►
translation.h
►
version.cpp
►
version.h
►
voxel.cpp
►
voxel.h
►
voxelalgorithms.cpp
►
voxelalgorithms.h
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
};
9
enum class
ContentType
{
…
};
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
};
19
struct
ContentSpec
{
…
};
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