Skip to content

Commit e1a8a29

Browse files
committed
feat: some TES defs
1 parent 10ee082 commit e1a8a29

188 files changed

Lines changed: 6533 additions & 74 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

include/OBSE/Impl/PCH.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <string_view>
3535
#include <tuple>
3636
#include <type_traits>
37+
#include <unordered_set>
3738
#include <utility>
3839
#include <variant>
3940
#include <vector>

include/RE/A/ACTION_FLAGS.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
enum class ACTION_FLAGS : std::int32_t
6+
{
7+
kNormal,
8+
kStart,
9+
};
10+
}

include/RE/A/ACTOR_BASE_DATA.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
struct ACTOR_BASE_DATA
6+
{
7+
public:
8+
// members
9+
std::int32_t actorBaseFlags; // 00
10+
std::uint16_t spellPoints; // 04
11+
std::uint16_t fatigue; // 06
12+
std::uint16_t barterGold; // 08
13+
std::int16_t level; // 0A
14+
std::uint16_t calcLevelMin; // 0C
15+
std::uint16_t calcLevelMax; // 0E
16+
};
17+
static_assert(sizeof(ACTOR_BASE_DATA) == 0x10);
18+
}

include/RE/A/ACTOR_LIFE_STATE.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
enum class ACTOR_LIFE_STATE : std::int32_t
6+
{
7+
kAlive,
8+
kDying,
9+
kDead,
10+
kUnconscious,
11+
kReanimate,
12+
kRestrained,
13+
kEssentialDown,
14+
};
15+
}

include/RE/A/ACTOR_TYPE.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
enum class ACTOR_TYPE : std::int32_t
6+
{
7+
kCreature,
8+
kNPC,
9+
kPC,
10+
};
11+
}

include/RE/A/AIDATA.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
struct AIDATA
6+
{
7+
public:
8+
// members
9+
std::uint8_t aggression; // 00
10+
std::uint8_t confidence; // 01
11+
std::uint8_t energy; // 02
12+
std::uint8_t responsibility; // 03
13+
std::uint32_t serviceFlags; // 04
14+
std::uint8_t trainingSkill; // 08
15+
std::uint8_t trainingLevel; // 09
16+
};
17+
static_assert(sizeof(AIDATA) == 0x0C);
18+
}

include/RE/A/AMMO_DATA.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
struct AMMO_DATA
6+
{
7+
public:
8+
// members
9+
float speed; // 00
10+
std::uint8_t flags; // 04
11+
};
12+
static_assert(sizeof(AMMO_DATA) == 0x08);
13+
}

include/RE/A/Actor.h

Lines changed: 315 additions & 0 deletions
Large diffs are not rendered by default.

include/RE/A/ActorDeathInfos.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#pragma once
2+
3+
#include "RE/F/FormTypes.h"
4+
5+
namespace RE
6+
{
7+
class ActorDeathInfos
8+
{
9+
public:
10+
// members
11+
FormType lastHitFormType; // 00
12+
TESFormID lastHitFormID; // 04
13+
float lastHitDamageAmount; // 08
14+
float lastHitDamagePercent; // 0C
15+
std::unordered_set<std::uint32_t> otherDamageSources; // 10
16+
std::int32_t combatStartTime; // 50
17+
};
18+
static_assert(sizeof(ActorDeathInfos) == 0x58);
19+
}

include/RE/A/ActorValue.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
namespace ActorValue
6+
{
7+
enum class Index : std::int8_t;
8+
enum class Section : std::int32_t;
9+
}
10+
}

0 commit comments

Comments
 (0)