mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Move EnumString to separate file and add enum_to_string (#15714)
This commit is contained in:
@@ -25,7 +25,6 @@ extern "C" {
|
||||
#include "itemgroup.h"
|
||||
#include "itemdef.h"
|
||||
#include "util/pointabilities.h"
|
||||
#include "c_types.h"
|
||||
// We do an explicit path include because by default c_content.h include src/client/hud.h
|
||||
// prior to the src/hud.h, which is not good on server only build
|
||||
#include "../../hud.h"
|
||||
@@ -58,6 +57,8 @@ struct collisionMoveResult;
|
||||
namespace treegen { struct TreeDef; }
|
||||
|
||||
extern struct EnumString es_TileAnimationType[];
|
||||
extern struct EnumString es_ItemType[];
|
||||
extern struct EnumString es_TouchInteractionMode[];
|
||||
|
||||
|
||||
extern const std::array<const char *, 33> object_property_keys;
|
||||
@@ -141,9 +142,6 @@ std::vector<ItemStack> read_items(lua_State *L, int index, IGameDef* gdef);
|
||||
|
||||
void push_simplesoundspec(lua_State *L, const SoundSpec &spec);
|
||||
|
||||
bool string_to_enum(const EnumString *spec,
|
||||
int &result, const std::string &str);
|
||||
|
||||
bool read_noiseparams(lua_State *L, int index, NoiseParams *np);
|
||||
void push_noiseparams(lua_State *L, NoiseParams *np);
|
||||
|
||||
|
Reference in New Issue
Block a user