mirror of https://github.com/OpenMW/openmw.git
Merge branch 'fixedtimestamp' into 'master'
Move TimeStamp to ESM3 and remove sized reads See merge request OpenMW/openmw!3295macos_ci_fix
commit
5160fbc2a0
@ -0,0 +1,11 @@
|
||||
#include "timestamp.hpp"
|
||||
|
||||
#include "esmreader.hpp"
|
||||
|
||||
namespace ESM
|
||||
{
|
||||
void TimeStamp::load(ESMReader& esm, NAME name)
|
||||
{
|
||||
esm.getHNT(name, mHour, mDay);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef OPENMW_COMPONENTS_ESM3_TIMESTAMP_H
|
||||
#define OPENMW_COMPONENTS_ESM3_TIMESTAMP_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include <components/esm/esmcommon.hpp>
|
||||
|
||||
namespace ESM
|
||||
{
|
||||
class ESMReader;
|
||||
|
||||
struct TimeStamp
|
||||
{
|
||||
float mHour;
|
||||
int32_t mDay;
|
||||
|
||||
void load(ESMReader& esm, NAME name = "TIME");
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue