Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Sep 20, 2024
1 parent 1aaa0de commit 088519c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/Features/Features.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@

template <typename HookContext>
struct Features {
Features(FeaturesStates& states, FeatureHelpers& helpers, Hooks& hooks, HookContext& hookContext) noexcept
: states{states}
, helpers{helpers}
, hooks{hooks}
, hookContext{hookContext}
{
}

[[nodiscard]] auto hudFeatures() const noexcept
{
return HudFeatures{states.hudFeaturesStates, hookContext};
Expand Down
6 changes: 6 additions & 0 deletions Source/Features/Hud/HudFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@

template <typename HookContext>
struct HudFeatures {
HudFeatures(HudFeaturesStates& states, HookContext& hookContext) noexcept
: states{states}
, hookContext{hookContext}
{
}

[[nodiscard]] auto bombTimerToggle() const noexcept
{
return BombTimerToggle{BombTimerContext{hookContext}};
Expand Down
8 changes: 8 additions & 0 deletions Source/Features/Sound/SoundFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@

template <typename HookContext>
struct SoundFeatures {
SoundFeatures(SoundFeaturesStates& states, FeatureHelpers& helpers, ViewRenderHook& viewRenderHook, HookContext& hookContext) noexcept
: states{states}
, helpers{helpers}
, viewRenderHook{viewRenderHook}
, hookContext{hookContext}
{
}

[[nodiscard]] auto footstepVisualizer() const noexcept
{
return soundVisualizationFeature<FootstepVisualizer>(states.footstepVisualizerState);
Expand Down
7 changes: 7 additions & 0 deletions Source/Features/Visuals/VisualFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ class LoopModeGameHook;

template <typename HookContext>
struct VisualFeatures {
VisualFeatures(HookContext& hookContext, VisualFeaturesStates& states, ViewRenderHook& viewRenderHook) noexcept
: hookContext{hookContext}
, states{states}
, viewRenderHook{viewRenderHook}
{
}

[[nodiscard]] auto playerInformationThroughWalls() const noexcept
{
return PlayerInformationThroughWallsToggle{states.playerInformationThroughWallsState, hookContext, viewRenderHook};
Expand Down

0 comments on commit 088519c

Please sign in to comment.