Skip to content

Commit

Permalink
feat: RE BGSSoundReference (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 authored Nov 4, 2023
1 parent e0265ed commit 6594a03
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 33 deletions.
8 changes: 2 additions & 6 deletions CommonLibSF/include/RE/B/BGSCraftingUseSound.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include "RE/B/BGSSoundReference.h"
#include "RE/B/BaseFormComponent.h"

namespace RE
Expand All @@ -16,12 +17,7 @@ namespace RE
void InitializeDataComponent() override; // 02 - { return; }

// members
std::uint64_t unk08; // 08
std::uint64_t unk10; // 10
std::uint64_t unk18; // 18
std::uint64_t unk20; // 20
std::uint64_t unk28; // 28
std::uint64_t unk30; // 30
BGSSoundReference craftingUseSound; // 08
};
static_assert(sizeof(BGSCraftingUseSound) == 0x38);
}
15 changes: 3 additions & 12 deletions CommonLibSF/include/RE/B/BGSPickupPutdownSounds.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include "RE/B/BGSSoundReference.h"
#include "RE/B/BaseFormComponent.h"

namespace RE
Expand All @@ -16,18 +17,8 @@ namespace RE
void InitializeDataComponent() override; // 02 - { return; }

// members
std::uint64_t unk08; // 08
std::uint64_t unk10; // 10
std::uint64_t unk18; // 18
std::uint64_t unk20; // 20
std::uint64_t unk28; // 28
std::uint64_t unk30; // 30
std::uint64_t unk38; // 38
std::uint64_t unk40; // 40
std::uint64_t unk48; // 48
std::uint64_t unk50; // 50
std::uint64_t unk58; // 58
std::uint64_t unk60; // 60
BGSSoundReference pickupSound; // 08
BGSSoundReference putdownSound; // 38
};
static_assert(sizeof(BGSPickupPutdownSounds) == 0x68);
}
20 changes: 20 additions & 0 deletions CommonLibSF/include/RE/B/BGSSoundReference.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#pragma once

namespace RE
{
class BGSConditionForm;
class BGSWwiseEventForm;

class BGSSoundReference
{
public:
// members
std::uint64_t unk00; // 00 - WWise GUID 1
std::uint64_t unk08; // 08
std::uint64_t unk10; // 10 - WWise GUID 2
std::uint64_t unk18; // 18
BGSConditionForm* conditions; // 20
BGSWwiseEventForm* eventData; // 28
};
static_assert(sizeof(BGSSoundReference) == 0x30);
}
21 changes: 6 additions & 15 deletions CommonLibSF/include/RE/T/TESRace.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "RE/B/BGSPreloadable.h"
#include "RE/B/BGSPropertySheet.h"
#include "RE/B/BGSSkinForm.h"
#include "RE/B/BGSSoundReference.h"
#include "RE/B/BGSTextureModel.h"
#include "RE/S/Sexes.h"
#include "RE/T/TESDescription.h"
Expand Down Expand Up @@ -77,9 +78,9 @@ namespace RE
std::int32_t unkC4; // C4
std::uint32_t unkC8; // C8
std::uint32_t unkCC; // CC
BGSExplosion* unkD0; // D0
BGSDebris* unkD8; // D8
BGSImpactDataSet* unkE0; // E0
BGSExplosion* explosion; // D0
BGSDebris* debris; // D8
BGSImpactDataSet* impactDataSet; // E0
std::uint32_t unkE8; // E8
std::uint32_t unkEC; // EC
float unkF0; // F0
Expand Down Expand Up @@ -125,18 +126,8 @@ namespace RE
// members
BGSEditorID formEditorID; // 0F0
BGSMaterialType* bloodImpactMaterial; // 100
std::uint64_t unk108; // 108 - sound related?
std::uint64_t unk110; // 110
std::uint64_t unk118; // 118
std::uint64_t unk120; // 120
std::uint64_t unk128; // 128
std::uint64_t unk130; // 130
std::uint64_t unk138; // 138 - sound related?
std::uint64_t unk140; // 140
std::uint64_t unk148; // 148
std::uint64_t unk150; // 150
std::uint64_t unk158; // 158
std::uint64_t unk160; // 160
BGSSoundReference corpseOpenSound; // 108
BGSSoundReference corpseCloseSound; // 138
BSFixedString bipedObjectNames[64]; // 168
ActorValueInfo* bipedObjectConditions[64]; // 368
std::uint64_t unk568; // 568
Expand Down

0 comments on commit 6594a03

Please sign in to comment.