diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-28 13:11:14 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-28 13:11:14 +0100 |
commit | 013ae71c871c81437a1bad197e0bf7481d02b4a6 (patch) | |
tree | 13191934b88edd6d8ecaab43c82425c5dd719264 /source/cChunk.h | |
parent | Implemented synchronous chunk loading; optimized cChunkStay interface for speed (though still unused ;) (diff) | |
download | cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.gz cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.bz2 cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.lz cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.xz cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.zst cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cChunk.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/cChunk.h b/source/cChunk.h index 3dc1c56fd..cc9585810 100644 --- a/source/cChunk.h +++ b/source/cChunk.h @@ -121,6 +121,7 @@ public: bool IsValid(void) const {return m_IsValid; } // Returns true if the chunk is valid (loaded / generated)
void SetValid(bool a_SendToClients = true); // Also wakes up all clients attached to this chunk to let them finish logging in
bool IsDirty(void) const {return m_IsDirty; } // Returns true if the chunk has changed since it was last saved
+ bool HasLoadFailed(void) const {return m_HasLoadFailed; } // Returns true if the chunk failed to load and hasn't been generated since then
bool CanUnload(void);
/*
@@ -133,6 +134,7 @@ public: void MarkSaving(void); // Marks the chunk as being saved.
void MarkSaved(void); // Marks the chunk as saved, if it didn't change from the last call to MarkSaving()
void MarkLoaded(void); // Marks the chunk as freshly loaded. Fails if the chunk is already valid
+ void MarkLoadFailed(void); // Marks the chunk as failed to load. Ignored is the chunk is already valid
/// Gets all chunk data, calls the a_Callback's methods for each data type
void GetAllData(cChunkDataCallback * a_Callback);
@@ -231,6 +233,7 @@ private: bool m_IsValid; // True if the chunk is loaded / generated
bool m_IsDirty; // True if the chunk has changed since it was last saved
bool m_IsSaving; // True if the chunk is being saved
+ bool m_HasLoadFailed; // True if chunk failed to load and hasn't been generated yet since then
cCriticalSection m_CSBlockLists;
std::map< unsigned int, int > m_ToTickBlocks;
|