Move client-specific files to 'src/client' (#7902)
[oweals/minetest.git] / src / clientiface.h
index a7cbc01071d56aac0244e5a21488698d2db3ca37..5335fa6442ac601066bb27cc8c65adbc039492b1 100644 (file)
@@ -274,6 +274,11 @@ public:
 
        u32 getSendingCount() const { return m_blocks_sending.size(); }
 
+       bool isBlockSent(v3s16 p) const
+       {
+               return m_blocks_sent.find(p) != m_blocks_sent.end();
+       }
+
        // Increments timeouts and removes timed-out blocks from list
        // NOTE: This doesn't fix the server-not-sending-block bug
        //       because it is related to emerging, not sending.
@@ -431,6 +436,9 @@ public:
        /* get list of active client id's */
        std::vector<session_t> getClientIDs(ClientState min_state=CS_Active);
 
+       /* mark block as not sent to active client sessions */
+       void markBlockposAsNotSent(const v3s16 &pos);
+
        /* verify is server user limit was reached */
        bool isUserLimitReached();