00001
00002
00003
00004
00005
00006
00007
00008
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef loadbi3H
00025 #define loadbi3H
00026
00027 #include "typen.h"
00028 #include "sgstream.h"
00029 #include "itemrepository.h"
00030
00031 #ifdef converter
00032 #error The small editors should not need to use LoadBi3
00033 #endif
00034
00035
00036
00046 extern void importbattleislemap ( const ASCString& path, const ASCString& mapfilename, TerrainType::Weather* trrn, const ASCString& importTable, ASCString* errorOutput = NULL, bool __fakeMap = false );
00047
00054 extern void insertbattleislemap ( int x, int y, const ASCString& path, const ASCString& mapfilename, const ASCString& importTable );
00055
00057 extern ASCString getbi3path();
00058
00060 extern void setDefaultBI3ImportTranslationTable( const ASCString& filename );
00061
00063 extern vector<ASCString> getBI3ImportTables();
00064
00065 extern int getterraintranslatenum ( void );
00066 extern int getobjectcontainertranslatenum ( void );
00067
00068 extern const int* getterraintranslate ( int pos );
00069 extern const int* getobjectcontainertranslate ( int pos );
00070
00071 class BI3TranslationTableLoader: public TextFileDataLoader {
00072 public:
00073 virtual void readTextFiles( PropertyReadingContainer& prc, const ASCString& fileName, const ASCString& location ) ;
00074 virtual void read ( tnstream& stream ) ;
00075 virtual void write ( tnstream& stream );
00076 virtual ASCString getTypeName();
00077 };
00078
00079
00080 #endif