Skip to content

Commit

Permalink
feat: Add KEEP_FOR_RE macro to CLIB-VR (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Tse <[email protected]>
  • Loading branch information
Nightfallstorm and alandtse authored Dec 6, 2023
1 parent d9e5470 commit 06182ef
Show file tree
Hide file tree
Showing 1,418 changed files with 3,096 additions and 2 deletions.
3 changes: 3 additions & 0 deletions include/RE/A/AIProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ namespace RE

protected:
void Update3DModel_Impl(Actor* a_actor);

private:
KEEP_FOR_RE()
};
static_assert(sizeof(AIProcess) == 0x140);
}
2 changes: 2 additions & 0 deletions include/RE/A/AITimeStamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ namespace RE
public:
// members
float timeStamp; // 0
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AITimeStamp) == 0x4);
}
2 changes: 2 additions & 0 deletions include/RE/A/AITimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ namespace RE
//members
float aiTimer; // 00
float timer; // 04
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AITimer) == 0x08);
}
2 changes: 2 additions & 0 deletions include/RE/A/AbsorbEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ namespace RE
void ModifyOnStart() override; // 1B
void ModifyOnUpdate(float a_delta) override; // 1D
void ModifyOnFinish(Actor* a_caster, Actor* a_target, float a_value) override; // 1F
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AbsorbEffect) == 0x98);
}
2 changes: 2 additions & 0 deletions include/RE/A/AbstractHeap.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ namespace RE
std::uint16_t pad0A0; // 0A6
HeapBlock* smallFreeLists[32]; // 0A8
HeapBlockFreeHead* largeFreeTrees[32]; // 1A8
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AbstractHeap) == 0x2A8);
}
2 changes: 2 additions & 0 deletions include/RE/A/AccumulatingValueModifierEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ namespace RE
float accumulatedMagnitude; // 98
float maximumMagnitude; // 9C
float holdTimer; // A0
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AccumulatingValueModifierEffect) == 0xA8);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActionInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ namespace RE
NiPointer<TESObjectREFR> target; // 10
BGSAction* action; // 18
uint32_t unk20; // 20
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActionInput) == 0x28);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActionOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace RE
TESIdleForm* sequence; // 18
const TESIdleForm* animObjIdle; // 20
uint32_t sequenceIndex; // 28
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActionOutput) == 0x30);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActivateHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace RE
bool heldButtonActionSuccess; // 1A
bool disabled; // 1B
std::uint32_t unk1C; // 1C
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActivateHandler) == 0x20);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActiveEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ namespace RE
std::uint16_t pad86; // 86
MagicSystem::CastingSource castingSource; // 88
std::uint32_t pad8C; // 8C
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActiveEffect) == 0x90);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActiveEffectReferenceEffectController.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ namespace RE
ActiveEffect* effect; // 08
ObjectRefHandle target; // 10
NiPoint3 windPoint; // 14
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActiveEffectReferenceEffectController) == 0x20);
}
1 change: 1 addition & 0 deletions include/RE/A/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ namespace RE
void CalculateCurrentVendorFaction() const;
float CalcEquippedWeight();
TESFaction* GetCrimeFactionImpl() const;
KEEP_FOR_RE()
};
#ifndef SKYRIM_SUPPORT_AE
static_assert(sizeof(Actor) == 0x2B0);
Expand Down
2 changes: 2 additions & 0 deletions include/RE/A/ActorCause.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ namespace RE
NiPoint3 origin; // 04
std::uint32_t actorCauseID; // 10
volatile mutable std::int32_t refCount; // 14
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorCause) == 0x18);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorEquipManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace RE

// members
bool unk01; // 01
private:
KEEP_FOR_RE()
};
#ifndef SKYRIMVR
static_assert(sizeof(ActorEquipManager) == 0x2);
Expand Down
2 changes: 2 additions & 0 deletions include/RE/A/ActorInventoryEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace RE
// members
const INVENTORY_EVENT event; // 00
BIPED_OBJECT equipIndex; // 04
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorInventoryEvent) == 0x08);
}
3 changes: 3 additions & 0 deletions include/RE/A/ActorKill.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ namespace RE
static_assert(sizeof(Event) == 0x10);

static BSTEventSource<Event>* GetEventSource();

private:
KEEP_FOR_RE()
};
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorKnowledge.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ namespace RE
BSTArray<NiPointer<DetectionListener>> listeners; // 28
stl::enumeration<FLAGS, std::uint32_t> flags; // 40
AITimeStamp detectionQueuedTimeStamp; // 44
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorKnowledge) == 0x48);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorMagicCaster.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ namespace RE
float costCharged; // F0
MagicSystem::CastingSource castingSource; // F4
stl::enumeration<Flags, std::uint32_t> flags; // F8
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorMagicCaster) == 0x100);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorMover.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace RE

// members
Actor* actor; // 08
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorMover) == 0x10);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorPackage.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ namespace RE
stl::enumeration<ACTOR_PACKAGE_FLAG, std::int8_t> actorPackageFlags; // 2A
std::int8_t preferredSpeed; // 2B
std::uint32_t pad2C; // 2C
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorPackage) == 0x30);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorSpeedChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace RE
std::uint32_t unk00; // 00
Val val; // 04
T* type; // ??
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorSpeedChannel<void, float>) == 0x10);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorState.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ namespace RE
// members
ActorState1 actorState1; // 08
ActorState2 actorState2; // 0C
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorState) == 0x10);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorTargetCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace RE
std::uint64_t unk08; // 08
std::uint64_t unk10; // 10
std::uint64_t unk18; // 18
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorTargetCheck) == 0x20);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorValueInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ namespace RE
BGSSkillPerkTreeNode* perkTree; // 118
std::uint32_t perkTreeWidth; // 120
std::uint32_t unk124; // 124 - CNAM
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorValueInfo) == 0x128);
}
2 changes: 2 additions & 0 deletions include/RE/A/ActorValueList.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ namespace RE
std::uint32_t unk00; // 00
std::uint32_t pad04; // 04
ActorValueInfo* actorValues[stl::to_underlying(ActorValue::kTotal)]; // 08
private:
KEEP_FOR_RE()
};
}

Expand Down
2 changes: 2 additions & 0 deletions include/RE/A/ActorValueMeter.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ namespace RE
// members
ActorValue actorValue; // 48
std::uint32_t pad4C; // 4C
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorValueMeter) == 0x50);
}
3 changes: 3 additions & 0 deletions include/RE/A/ActorValueOwner.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ namespace RE

[[nodiscard]] float GetArmorRatingSkillMultiplier(float a_skillLevel) const;
[[nodiscard]] float GetClampedActorValue(ActorValue a_akValue) const;

private:
KEEP_FOR_RE()
};
static_assert(sizeof(ActorValueOwner) == 0x8);
}
3 changes: 3 additions & 0 deletions include/RE/A/ActorValues.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ namespace RE

kTotal = 3
};

private:
KEEP_FOR_RE()
};
using ACTOR_VALUE_MODIFIER = ACTOR_VALUE_MODIFIERS::ACTOR_VALUE_MODIFIER;
}
2 changes: 2 additions & 0 deletions include/RE/A/AddCallbackVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ namespace RE
// members
FxDelegateHandler* handler; // 08
FxDelegate::CallbackHash* hash; // 10
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AddCallbackVisitor) == 0x18);
}
2 changes: 2 additions & 0 deletions include/RE/A/AlchemyItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ namespace RE
// members
Data data; // 138 - ENIT
TESIcon messageIcon; // 158
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AlchemyItem) == 0x168);
}
2 changes: 2 additions & 0 deletions include/RE/A/AnimationFileManagerSingleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ namespace RE
BSTArray<void*> unk68; // 68
uint64_t unk80; // 80
BSTArray<void*> unk88; // 88
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AnimationFileManagerSingleton) == 0xA0);
}
4 changes: 4 additions & 0 deletions include/RE/A/AnimationObjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ namespace RE
std::uint8_t pad21; // 21
std::uint16_t pad22; // 22
std::uint32_t pad24; // 24
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AnimationObject) == 0x28);

Expand All @@ -42,6 +44,8 @@ namespace RE
std::uint32_t pad04; // 04
BSTArray<BSTSmartPointer<AnimationObject>> animationObjects; // 08
BSSpinLock lock; // 20
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AnimationObjects) == 0x28);
}
2 changes: 2 additions & 0 deletions include/RE/A/Archive.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ namespace RE
std::uint64_t unk218; // 218
std::uint64_t unk220; // 220
std::uint64_t unk228; // 228
private:
KEEP_FOR_RE()
};
#ifndef SKYRIMVR
static_assert(sizeof(Archive) == 0x230);
Expand Down
2 changes: 2 additions & 0 deletions include/RE/A/ArmorRatingVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace RE

// members
BSScrapArray<TESObjectARMO*> armors; // 20
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ArmorRatingVisitor) == 0x40);
}
2 changes: 2 additions & 0 deletions include/RE/A/ArmorRatingVisitorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ namespace RE
float armorPerks; // 14
float lightArmorRating; // 18
float heavyArmorRating; // 1C
private:
KEEP_FOR_RE()
};
static_assert(sizeof(ArmorRatingVisitorBase) == 0x20);
}
2 changes: 2 additions & 0 deletions include/RE/A/ArrowProjectile.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ namespace RE
// members
EnchantmentItem* enchantItem; // 1E0
AlchemyItem* poison; // 1E8
private:
KEEP_FOR_RE()
};
#ifndef SKYRIM_SUPPORT_AE
static_assert(sizeof(ArrowProjectile) == 0x1F0);
Expand Down
2 changes: 2 additions & 0 deletions include/RE/A/Atmosphere.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ namespace RE
std::uint8_t pad31; // 31
std::uint16_t pad32; // 31
std::uint32_t pad34; // 34
private:
KEEP_FOR_RE()
};
static_assert(sizeof(Atmosphere) == 0x38);
}
2 changes: 2 additions & 0 deletions include/RE/A/AttachLightHitEffectVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace RE
std::uint8_t pad19; // 19
std::uint16_t pad1A; // 1A
std::uint32_t pad1C; // 1C
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AttachLightHitEffectVisitor) == 0x20);
}
2 changes: 2 additions & 0 deletions include/RE/A/AttackAnimationArrayMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ namespace RE
};

virtual ~AttackAnimationArrayMap(); // 00
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AttackAnimationArrayMap) == 0x40);
}
2 changes: 2 additions & 0 deletions include/RE/A/AttackBlockHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ namespace RE
bool heldLeft; // 42
bool heldRight; // 43
std::uint32_t unk44; // 44
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AttackBlockHandler) == 0x48);
}
2 changes: 2 additions & 0 deletions include/RE/A/AutoMoveHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ namespace RE
// override (PlayerInputHandler)
bool CanProcess(InputEvent* a_event) override; // 01
void ProcessButton(ButtonEvent* a_event, PlayerControlsData* a_data) override; // 04
private:
KEEP_FOR_RE()
};
static_assert(sizeof(AutoMoveHandler) == 0x10);
}
2 changes: 2 additions & 0 deletions include/RE/A/AutoRegisterCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ namespace RE
{
public:
virtual ~AutoRegisterCreator(); // 00
private:
KEEP_FOR_RE()
};
}
2 changes: 2 additions & 0 deletions include/RE/A/AutoRegisterFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ namespace RE
public:
static_assert(sizeof(AutoRegisterFactory) == 0x8);
virtual ~AutoRegisterFactory(); // 00
private:
KEEP_FOR_RE()
};
}
Loading

0 comments on commit 06182ef

Please sign in to comment.