1
0

Fixed exports

This commit is contained in:
Tycho 2014-01-25 06:06:30 -08:00
parent 5ef0a00a6c
commit 2806b48afa
3 changed files with 1 additions and 7 deletions

View File

@ -70,7 +70,6 @@ $cfile "../Generating/ChunkDesc.h"
$cfile "../CraftingRecipes.h" $cfile "../CraftingRecipes.h"
$cfile "../UI/Window.h" $cfile "../UI/Window.h"
$cfile "../Mobs/Monster.h" $cfile "../Mobs/Monster.h"
$cfile "../WorldStorage/SchematicFileSerializer.h"

View File

@ -2258,7 +2258,6 @@ static int tolua_cBlockArea_LoadFromSchematicFile(lua_State * tolua_S)
} }
AString Filename = tolua_tostring(tolua_S, 2, 0); AString Filename = tolua_tostring(tolua_S, 2, 0);
LOGWARNING("cBlockArea::LoadFromSchematic file is depreciated. Please use cSchematicFileSerilizer::LoadFromSchematicFile.");
bool res = cSchematicFileSerializer::LoadFromSchematicFile(*self,Filename); bool res = cSchematicFileSerializer::LoadFromSchematicFile(*self,Filename);
tolua_pushboolean(tolua_S, res); tolua_pushboolean(tolua_S, res);
return 1; return 1;
@ -2287,7 +2286,6 @@ static int tolua_cBlockArea_SaveToSchematicFile(lua_State * tolua_S)
return 0; return 0;
} }
AString Filename = tolua_tostring(tolua_S, 2, 0); AString Filename = tolua_tostring(tolua_S, 2, 0);
LOGWARNING("cBlockArea::SaveToSchematic file is depreciated. Please use cSchematicFileSerializer::SaveToSchematicFile.");
bool res = cSchematicFileSerializer::SaveToSchematicFile(*self,Filename); bool res = cSchematicFileSerializer::SaveToSchematicFile(*self,Filename);
tolua_pushboolean(tolua_S, res); tolua_pushboolean(tolua_S, res);
return 1; return 1;

View File

@ -13,7 +13,6 @@ class cParsedNBT;
// tolua_begin
class cSchematicFileSerializer class cSchematicFileSerializer
{ {
public: public:
@ -24,9 +23,7 @@ public:
/// Saves the area into a .schematic file. Returns true if successful /// Saves the area into a .schematic file. Returns true if successful
static bool SaveToSchematicFile(cBlockArea & a_BlockArea, const AString & a_FileName); static bool SaveToSchematicFile(cBlockArea & a_BlockArea, const AString & a_FileName);
// tolua_end
private: private:
/// Loads the area from a schematic file uncompressed and parsed into a NBT tree. Returns true if successful. /// Loads the area from a schematic file uncompressed and parsed into a NBT tree. Returns true if successful.
static bool LoadFromSchematicNBT(cBlockArea & a_BlockArea, cParsedNBT & a_NBT); static bool LoadFromSchematicNBT(cBlockArea & a_BlockArea, cParsedNBT & a_NBT);
}; // tolua_export };