Replace all windows types
This commit is contained in:
@@ -23,16 +23,16 @@ public:
|
||||
// completely different lifespans.
|
||||
|
||||
virtual bool requiresTexturePack()=0;
|
||||
virtual UINT getRequiredTexturePackId()=0;
|
||||
virtual unsigned int getRequiredTexturePackId()=0;
|
||||
virtual wstring getDefaultSaveName()=0;
|
||||
virtual LPCWSTR getWorldName()=0;
|
||||
virtual LPCWSTR getDisplayName()=0;
|
||||
virtual const wchar_t* getWorldName()=0;
|
||||
virtual const wchar_t* getDisplayName()=0;
|
||||
virtual wstring getGrfPath()=0;
|
||||
virtual bool requiresBaseSave() = 0;
|
||||
virtual wstring getBaseSavePath() = 0;
|
||||
|
||||
virtual void setRequiresTexturePack(bool)=0;
|
||||
virtual void setRequiredTexturePackId(UINT)=0;
|
||||
virtual void setRequiredTexturePackId(unsigned int)=0;
|
||||
virtual void setDefaultSaveName(const wstring &)=0;
|
||||
virtual void setWorldName(const wstring &)=0;
|
||||
virtual void setDisplayName(const wstring &)=0;
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
virtual bool ready()=0;
|
||||
|
||||
//virtual void getGrfData(PBYTE &pData, DWORD &pSize)=0;
|
||||
//virtual void getGrfData(uint8_t* &pData, unsigned long &pSize)=0;
|
||||
};
|
||||
|
||||
class JustGrSource : public GrSource
|
||||
@@ -58,16 +58,16 @@ protected:
|
||||
|
||||
public:
|
||||
virtual bool requiresTexturePack();
|
||||
virtual UINT getRequiredTexturePackId();
|
||||
virtual unsigned int getRequiredTexturePackId();
|
||||
virtual wstring getDefaultSaveName();
|
||||
virtual LPCWSTR getWorldName();
|
||||
virtual LPCWSTR getDisplayName();
|
||||
virtual const wchar_t* getWorldName();
|
||||
virtual const wchar_t* getDisplayName();
|
||||
virtual wstring getGrfPath();
|
||||
virtual bool requiresBaseSave();
|
||||
virtual wstring getBaseSavePath();
|
||||
|
||||
virtual void setRequiresTexturePack(bool x);
|
||||
virtual void setRequiredTexturePackId(UINT x);
|
||||
virtual void setRequiredTexturePackId(unsigned int x);
|
||||
virtual void setDefaultSaveName(const wstring &x);
|
||||
virtual void setWorldName(const wstring &x);
|
||||
virtual void setDisplayName(const wstring &x);
|
||||
@@ -103,8 +103,8 @@ private:
|
||||
|
||||
bool m_hasLoadedData;
|
||||
|
||||
PBYTE m_pbBaseSaveData;
|
||||
DWORD m_dwBaseSaveSize;
|
||||
uint8_t* m_pbBaseSaveData;
|
||||
unsigned long m_dwBaseSaveSize;
|
||||
|
||||
public:
|
||||
|
||||
@@ -116,10 +116,10 @@ public:
|
||||
bool isFromDLC();
|
||||
|
||||
bool requiresTexturePack();
|
||||
UINT getRequiredTexturePackId();
|
||||
unsigned int getRequiredTexturePackId();
|
||||
wstring getDefaultSaveName();
|
||||
LPCWSTR getWorldName();
|
||||
LPCWSTR getDisplayName();
|
||||
const wchar_t* getWorldName();
|
||||
const wchar_t* getDisplayName();
|
||||
wstring getGrfPath();
|
||||
bool requiresBaseSave();
|
||||
wstring getBaseSavePath();
|
||||
@@ -127,7 +127,7 @@ public:
|
||||
void setGrSource(GrSource *grs);
|
||||
|
||||
void setRequiresTexturePack(bool x);
|
||||
void setRequiredTexturePackId(UINT x);
|
||||
void setRequiredTexturePackId(unsigned int x);
|
||||
void setDefaultSaveName(const wstring &x);
|
||||
void setWorldName(const wstring &x);
|
||||
void setDisplayName(const wstring &x);
|
||||
@@ -136,8 +136,8 @@ public:
|
||||
|
||||
bool ready();
|
||||
|
||||
void setBaseSaveData(PBYTE pbData, DWORD dwSize);
|
||||
PBYTE getBaseSaveData(DWORD &size);
|
||||
void setBaseSaveData(uint8_t* pbData, unsigned long dwSize);
|
||||
uint8_t* getBaseSaveData(unsigned long &size);
|
||||
bool hasBaseSaveData();
|
||||
void deleteBaseSaveData();
|
||||
|
||||
@@ -146,7 +146,7 @@ public:
|
||||
|
||||
private:
|
||||
// This should match the "MapOptionsRule" definition in the XML schema
|
||||
__int64 m_seed;
|
||||
int64_t m_seed;
|
||||
bool m_useFlatWorld;
|
||||
Pos *m_spawnPos;
|
||||
vector<ApplySchematicRuleDefinition *> m_schematicRules;
|
||||
@@ -168,12 +168,12 @@ public:
|
||||
|
||||
virtual ConsoleGameRules::EGameRuleType getActionType();
|
||||
|
||||
virtual void writeAttributes(DataOutputStream *dos, UINT numAttributes);
|
||||
virtual void writeAttributes(DataOutputStream *dos, unsigned int numAttributes);
|
||||
virtual void getChildren(vector<GameRuleDefinition *> *children);
|
||||
virtual GameRuleDefinition *addChild(ConsoleGameRules::EGameRuleType ruleType);
|
||||
virtual void addAttribute(const wstring &attributeName, const wstring &attributeValue);
|
||||
|
||||
__int64 getLevelSeed();
|
||||
int64_t getLevelSeed();
|
||||
Pos *getSpawnPos();
|
||||
bool getuseFlatWorld();
|
||||
|
||||
@@ -186,7 +186,7 @@ private:
|
||||
void clearSchematics();
|
||||
|
||||
public:
|
||||
ConsoleSchematicFile *loadSchematicFile(const wstring &filename, PBYTE pbData, DWORD dwLen);
|
||||
ConsoleSchematicFile *loadSchematicFile(const wstring &filename, uint8_t* pbData, unsigned long dwLen);
|
||||
|
||||
public:
|
||||
ConsoleSchematicFile *getSchematicFile(const wstring &filename);
|
||||
@@ -196,11 +196,11 @@ public:
|
||||
void setRequiredGameRules(LevelRuleset *rules);
|
||||
LevelRuleset *getRequiredGameRules();
|
||||
|
||||
void getBiomeOverride(int biomeId, BYTE &tile, BYTE &topTile);
|
||||
void getBiomeOverride(int biomeId, uint8_t &tile, uint8_t &topTile);
|
||||
bool isFeatureChunk(int chunkX, int chunkZ, StructureFeature::EFeatureTypes feature);
|
||||
|
||||
void loadStringTable(StringTable *table);
|
||||
LPCWSTR getString(const wstring &key);
|
||||
const wchar_t* getString(const wstring &key);
|
||||
|
||||
unordered_map<wstring, ConsoleSchematicFile *> *getUnfinishedSchematicFiles();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user