mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_ESM_LTEX_H
 | 
						|
#define OPENMW_ESM_LTEX_H
 | 
						|
 | 
						|
#include <string>
 | 
						|
 | 
						|
#include "components/esm/defs.hpp"
 | 
						|
#include "components/esm/refid.hpp"
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
 | 
						|
    class ESMReader;
 | 
						|
    class ESMWriter;
 | 
						|
 | 
						|
    /*
 | 
						|
     * Texture used for texturing landscape.
 | 
						|
     * They are indexed by 'num', but still use 'id' to override base records.
 | 
						|
     * Original editor even does not allow to create new records with existing ID's.
 | 
						|
     * TODO: currently OpenMW-CS does not allow to override LTEX records at all.
 | 
						|
     */
 | 
						|
 | 
						|
    struct LandTexture
 | 
						|
    {
 | 
						|
        constexpr static RecNameInts sRecordId = REC_LTEX;
 | 
						|
 | 
						|
        /// Return a string descriptor for this record type. Currently used for debugging / error logs only.
 | 
						|
        static std::string_view getRecordType() { return "LandTexture"; }
 | 
						|
 | 
						|
        std::string mTexture;
 | 
						|
        RefId mId;
 | 
						|
        uint32_t mIndex;
 | 
						|
 | 
						|
        void load(ESMReader& esm, bool& isDeleted);
 | 
						|
        void save(ESMWriter& esm, bool isDeleted = false) const;
 | 
						|
 | 
						|
        /// Sets the record to the default state. Does not touch the index. Does touch mID.
 | 
						|
        void blank();
 | 
						|
    };
 | 
						|
}
 | 
						|
#endif
 |