Skip to content

Commit

Permalink
feat!: add BGSAudio::WwiseGUID, rename BGSSoundReference to `BGSA…
Browse files Browse the repository at this point in the history
…udio::WwiseSoundHook` (#216)
  • Loading branch information
powerof3 authored Nov 5, 2023
1 parent e4be0a4 commit 08e2d08
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 29 deletions.
4 changes: 2 additions & 2 deletions CommonLibSF/include/RE/B/BGSCraftingUseSound.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

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

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

// members
BGSSoundReference craftingUseSound; // 08
BGSAudio::WwiseSoundHook craftingUseSound; // 08
};
static_assert(sizeof(BGSCraftingUseSound) == 0x38);
}
6 changes: 3 additions & 3 deletions CommonLibSF/include/RE/B/BGSPickupPutdownSounds.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

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

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

// members
BGSSoundReference pickupSound; // 08
BGSSoundReference putdownSound; // 38
BGSAudio::WwiseSoundHook pickupSound; // 08
BGSAudio::WwiseSoundHook putdownSound; // 38
};
static_assert(sizeof(BGSPickupPutdownSounds) == 0x68);
}
20 changes: 0 additions & 20 deletions CommonLibSF/include/RE/B/BGSSoundReference.h

This file was deleted.

3 changes: 2 additions & 1 deletion CommonLibSF/include/RE/Starfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#include "RE/B/BGSScene.h"
#include "RE/B/BGSSkinForm.h"
#include "RE/B/BGSSnapTemplateComponent.h"
#include "RE/B/BGSSoundReference.h"
#include "RE/B/BGSTerminal.h"
#include "RE/B/BGSTerminalMenu.h"
#include "RE/B/BGSTextureModel.h"
Expand Down Expand Up @@ -215,3 +214,5 @@
#include "RE/T/TypeInfo.h"
#include "RE/U/UI.h"
#include "RE/V/Variable.h"
#include "RE/W/WWiseSoundHook.h"
#include "RE/W/WwiseGUID.h"
6 changes: 3 additions & 3 deletions CommonLibSF/include/RE/T/TESRace.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
#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"
#include "RE/T/TESForm.h"
#include "RE/T/TESFullName.h"
#include "RE/T/TESSpellList.h"
#include "RE/W/WWiseSoundHook.h"

namespace RE
{
Expand Down Expand Up @@ -126,8 +126,8 @@ namespace RE
// members
BGSEditorID formEditorID; // 0F0
BGSMaterialType* bloodImpactMaterial; // 100
BGSSoundReference corpseOpenSound; // 108
BGSSoundReference corpseCloseSound; // 138
BGSAudio::WwiseSoundHook corpseOpenSound; // 108
BGSAudio::WwiseSoundHook corpseCloseSound; // 138
BSFixedString bipedObjectNames[64]; // 168
ActorValueInfo* bipedObjectConditions[64]; // 368
std::uint64_t unk568; // 568
Expand Down
13 changes: 13 additions & 0 deletions CommonLibSF/include/RE/W/WwiseGUID.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#pragma once

namespace RE::BGSAudio
{
class WwiseGUID
{
public:
// members
std::uint64_t highGUID; // 00
std::uint64_t lowGUID; // 08
};
static_assert(sizeof(WwiseGUID) == 0x10);
}
23 changes: 23 additions & 0 deletions CommonLibSF/include/RE/W/WwiseSoundHook.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#pragma once

#include "RE/W/WwiseGUID.h"

namespace RE
{
class BGSConditionForm;
class BGSWwiseEventForm;

namespace BGSAudio
{
class WwiseSoundHook
{
public:
// members
WwiseGUID startEvent; // 00
WwiseGUID stopEvent; // 10
BGSConditionForm* conditions; // 20
BGSWwiseEventForm* eventData; // 28
};
static_assert(sizeof(WwiseSoundHook) == 0x30);
}
}

0 comments on commit 08e2d08

Please sign in to comment.