-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05d9ddc
commit 47e0441
Showing
13 changed files
with
146 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,27 @@ | ||
#pragma once | ||
|
||
#include "Record.h" | ||
#include "Chunks.h" | ||
|
||
// https://en.uesp.net/wiki/Skyrim_Mod:Mod_File_Format/CLMT | ||
class CLMT : Record | ||
{ | ||
public: | ||
static constexpr FormEnum kType = FormEnum::CLMT; | ||
|
||
struct WeatherList // WLST | ||
{ | ||
uint32_t m_weatherId; // WTHR | ||
uint32_t m_chance; | ||
uint32_t m_globalId; | ||
}; | ||
|
||
struct SunAndMoon // TNAM | ||
{ | ||
uint8_t m_sunriseBegin; // times 10 minutes | ||
uint8_t m_sunriseEnd; // times 10 minutes | ||
uint8_t m_sunsetBegin; // times 10 minutes | ||
uint8_t m_sunsetEnd; // times 10 minutes | ||
uint8_t m_volatility; // 0-100 | ||
uint8_t m_moons; | ||
}; | ||
|
||
struct Data | ||
{ | ||
// EDID | ||
const char* m_editorId = ""; | ||
String m_editorId = ""; | ||
// WLST | ||
const WeatherList* m_weatherList = nullptr; | ||
Chunks::WLST m_weatherList; | ||
// FNAM | ||
const char* m_sunTexture = ""; | ||
String m_sunTexture = ""; | ||
// GNAM | ||
const char* m_glareTexture = ""; | ||
String m_glareTexture = ""; | ||
//TNAM | ||
const SunAndMoon* m_timing = nullptr; | ||
Chunks::TNAM m_timing; | ||
}; | ||
|
||
Data ParseChunks(Map<Record*, SharedPtr<Buffer>>& aCompressedChunkCache) noexcept; | ||
Data ParseChunks() noexcept; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
#pragma once | ||
|
||
#include "Record.h" | ||
#include "Chunks.h" | ||
|
||
// https://en.uesp.net/wiki/Skyrim_Mod:Mod_File_Format/CONT | ||
class CONT : Record | ||
{ | ||
public: | ||
static constexpr FormEnum kType = FormEnum::CONT; | ||
|
||
struct Object | ||
{ | ||
// CNTO | ||
uint32_t m_formId = 0; | ||
uint32_t m_count = 0; | ||
}; | ||
|
||
struct Data | ||
{ | ||
// EDID | ||
const char* m_editorId = ""; | ||
String m_editorId = ""; | ||
// FULL | ||
const char* m_name = ""; | ||
String m_name = ""; | ||
// Objects | ||
Vector<Object> m_objects; | ||
Vector<Chunks::CNTO> m_objects; | ||
}; | ||
|
||
Data ParseChunks(Map<Record*, SharedPtr<Buffer>>& aCompressedChunkCache) noexcept; | ||
Data ParseChunks() noexcept; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.